@oisincoveney/pipeline 3.19.1 → 3.19.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -35,8 +35,8 @@ const DEFAULT_RUNNER_RESOURCES = {
35
35
  memory: "12Gi"
36
36
  },
37
37
  requests: {
38
- cpu: "1",
39
- memory: "5Gi"
38
+ cpu: "500m",
39
+ memory: "1Gi"
40
40
  }
41
41
  };
42
42
  const DEFAULT_RUNNER_DEADLINE_SECONDS = 5400;
@@ -55,11 +55,21 @@ function runPreSchedulePhase(rawOptions = {}) {
55
55
  function runPreSchedulePhaseEffect(options) {
56
56
  return Effect.gen(function* () {
57
57
  const context = yield* preScheduleContextEffect(options);
58
+ yield* ensurePreScheduleRunRecordEffect(context);
58
59
  const result = options.phase === "generate-schedule" ? yield* generateSchedulePhaseEffect(context) : yield* runAgentPhaseEffect(options, context);
59
60
  yield* recordPhaseResultEffect(context, result);
60
61
  return result.status === "passed" ? DYNAMIC_COMMAND_EXIT.pass : DYNAMIC_COMMAND_EXIT.fail;
61
62
  }).pipe(Effect.catch((error) => Effect.sync(() => dynamicRunnerCommandErrorExit(error, options.stderr))));
62
63
  }
64
+ function ensurePreScheduleRunRecordEffect(context) {
65
+ return context.persistence.runControlStore.createRun({
66
+ effort: "normal",
67
+ mode: "write",
68
+ nodeIds: [...preScheduleNodeIds()],
69
+ runId: context.payload.run.id,
70
+ target: "remote"
71
+ }).pipe(Effect.asVoid);
72
+ }
63
73
  function preScheduleContextEffect(options) {
64
74
  return Effect.gen(function* () {
65
75
  const { config, payload, persistence, worktreePath } = yield* dynamicRunnerContextEffect(options);
package/package.json CHANGED
@@ -132,7 +132,7 @@
132
132
  "prepack": "nub run build:cli"
133
133
  },
134
134
  "type": "module",
135
- "version": "3.19.1",
135
+ "version": "3.19.2",
136
136
  "description": "Config-driven multi-agent pipeline runner for repository work",
137
137
  "main": "./dist/index.js",
138
138
  "types": "./dist/index.d.ts",