@oisincoveney/pipeline 3.18.0 → 3.19.1
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.
- package/README.md +21 -14
- package/defaults/pipeline.yaml +12 -12
- package/defaults/profiles.yaml +4 -4
- package/dist/argo-submit.d.ts +38 -1
- package/dist/argo-submit.js +100 -15
- package/dist/argo-workflow.d.ts +30 -4
- package/dist/argo-workflow.js +101 -4
- package/dist/commands/runner-command-command.js +20 -2
- package/dist/moka-submit.d.ts +2 -2
- package/dist/planning/generate.d.ts +21 -1
- package/dist/planning/generate.js +42 -2
- package/dist/remote/argo/model.d.ts +47 -2
- package/dist/remote/argo/model.js +46 -18
- package/dist/remote/argo/storage.js +34 -17
- package/dist/remote/argo/templates.js +103 -1
- package/dist/remote/submit/argo-submission.d.ts +2 -1
- package/dist/remote/submit/argo-submission.js +32 -8
- package/dist/remote/submit/compilation.d.ts +2 -1
- package/dist/remote/submit/compilation.js +11 -42
- package/dist/remote/submit/service.js +29 -6
- package/dist/run-control/commands.js +1 -1
- package/dist/run-control/next-node.js +29 -6
- package/dist/run-control/postgres/postgres-run-control-store.js +24 -5
- package/dist/run-control/run-artifacts-command.js +1 -1
- package/dist/run-control/run-query-command.js +1 -1
- package/dist/run-control/store-manifest.js +16 -3
- package/dist/run-control/store.js +1 -1
- package/dist/runner-command/dynamic-command.js +64 -0
- package/dist/runner-command/finalize.js +69 -6
- package/dist/runner-command/lifecycle-context.js +21 -4
- package/dist/runner-command/pre-schedule.js +195 -0
- package/dist/runner-command/run.js +29 -5
- package/dist/runner-command/schedule-source-options.js +15 -0
- package/dist/runner-command/select-ready-wave.js +35 -0
- package/dist/runner.js +1 -1
- package/dist/schedule/prompts.js +3 -0
- package/dist/tickets/ticket-plan.d.ts +44 -0
- package/dist/workflow-submit-contract.d.ts +2 -2
- package/dist/workflow-submit-contract.js +2 -2
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -1,8 +1,9 @@
|
|
|
1
1
|
# @oisincoveney/pipeline
|
|
2
2
|
|
|
3
3
|
Config-driven multi-agent pipeline runner for repository work. The installed
|
|
4
|
-
package owns the runtime defaults
|
|
5
|
-
|
|
4
|
+
package owns the runtime defaults. Default Moka runs persist generated
|
|
5
|
+
schedules, run manifests, events, node status, and node results in the configured
|
|
6
|
+
Moka Postgres database, not in the target repository.
|
|
6
7
|
|
|
7
8
|
The published command is `moka`.
|
|
8
9
|
|
|
@@ -94,8 +95,8 @@ moka explain-plan
|
|
|
94
95
|
`moka run "<task>"` is the primary command surface.
|
|
95
96
|
|
|
96
97
|
It runs package-owned workflow config from the current worktree. Scheduled
|
|
97
|
-
entrypoints generate
|
|
98
|
-
the compiled schedule through the runtime.
|
|
98
|
+
entrypoints generate schedule YAML in memory, persist it on the DB-owned run
|
|
99
|
+
manifest, and run the compiled schedule through the runtime.
|
|
99
100
|
|
|
100
101
|
Canonical commands:
|
|
101
102
|
|
|
@@ -114,7 +115,7 @@ Canonical commands:
|
|
|
114
115
|
```shell
|
|
115
116
|
moka run "Implement PIPE-123 user-facing behavior"
|
|
116
117
|
moka run --target local --effort normal "Implement a standard local change"
|
|
117
|
-
moka run --schedule
|
|
118
|
+
moka run --schedule ./approved-schedule.yaml "Implement PIPE-123"
|
|
118
119
|
moka run --workflow inspect "Report the app structure and available checks. Do not modify files."
|
|
119
120
|
moka run --effort quick "Implement a focused fix"
|
|
120
121
|
moka run --effort normal "Implement a standard fix"
|
|
@@ -153,18 +154,24 @@ Read-only ticket commands are `moka ticket graph check`, `moka ticket sequence`,
|
|
|
153
154
|
`moka ticket start` without `--dry-run`: they use Backlog CLI task creation and
|
|
154
155
|
editing or invoke `moka run` for the selected ticket.
|
|
155
156
|
|
|
156
|
-
Local run
|
|
157
|
+
Local run-control state lives in the Moka DB selected by `momokaya.db.url` in
|
|
158
|
+
`~/.config/moka/config.yaml`. The run manifest stores the generated schedule as
|
|
159
|
+
`manifest.schedule`; node results are stored by `(runId, nodeId)` in the durable
|
|
160
|
+
node record table. Use the run-control commands to inspect or export this state:
|
|
157
161
|
|
|
158
|
-
```
|
|
159
|
-
|
|
160
|
-
|
|
161
|
-
|
|
162
|
-
|
|
163
|
-
events.ndjson
|
|
164
|
-
nodes/<node-id>/
|
|
165
|
-
artifacts/
|
|
162
|
+
```shell
|
|
163
|
+
moka runs
|
|
164
|
+
moka status <run-id>
|
|
165
|
+
moka logs <run-id> [node-id]
|
|
166
|
+
moka export <run-id> --sanitize
|
|
166
167
|
```
|
|
167
168
|
|
|
169
|
+
`moka next node <run-id>` reads the persisted `manifest.schedule` from the Moka
|
|
170
|
+
DB and emits the next ready node envelope. `moka submit-result <run-id>
|
|
171
|
+
<node-id> --json '<RuntimeNodeResult>'` writes the node result back to the same
|
|
172
|
+
DB state. `moka resume <run-id>` reconstructs the graph from the persisted
|
|
173
|
+
schedule; it does not need a repo-local generated schedule file.
|
|
174
|
+
|
|
168
175
|
Use `moka export <run-id> --sanitize` before sharing a run. The sanitized export
|
|
169
176
|
keeps portable evidence and omits prompt text, session body content, secrets,
|
|
170
177
|
tokens, and credentials.
|
package/defaults/pipeline.yaml
CHANGED
|
@@ -100,22 +100,22 @@ scheduler:
|
|
|
100
100
|
backlog-intake:
|
|
101
101
|
category: intake
|
|
102
102
|
profile: moka-researcher
|
|
103
|
-
models: [
|
|
103
|
+
models: [broker/gpt-5.5, kimi-for-coding/kimi-k2-thinking]
|
|
104
104
|
reasoning_effort: medium
|
|
105
105
|
red-tests:
|
|
106
106
|
category: red
|
|
107
107
|
profile: moka-test-writer
|
|
108
|
-
models: [
|
|
108
|
+
models: [broker/gpt-5.5, kimi-for-coding/kimi-k2-thinking]
|
|
109
109
|
reasoning_effort: high
|
|
110
110
|
green-implementation:
|
|
111
111
|
category: green
|
|
112
112
|
profile: moka-code-writer
|
|
113
|
-
models: [opencode-go/qwen3.7-max,
|
|
113
|
+
models: [opencode-go/qwen3.7-max, broker/gpt-5.5, kimi-for-coding/k2p6]
|
|
114
114
|
reasoning_effort: high
|
|
115
115
|
verification:
|
|
116
116
|
category: verification
|
|
117
117
|
profile: moka-verifier
|
|
118
|
-
models: [
|
|
118
|
+
models: [broker/gpt-5.5, kimi-for-coding/kimi-k2-thinking]
|
|
119
119
|
reasoning_effort: medium
|
|
120
120
|
execute:
|
|
121
121
|
required_categories: [intake, research, red, green, mechanical, acceptance, verification, learn]
|
|
@@ -123,42 +123,42 @@ scheduler:
|
|
|
123
123
|
backlog-intake:
|
|
124
124
|
category: intake
|
|
125
125
|
profile: moka-researcher
|
|
126
|
-
models: [
|
|
126
|
+
models: [broker/gpt-5.5, kimi-for-coding/kimi-k2-thinking]
|
|
127
127
|
reasoning_effort: medium
|
|
128
128
|
research:
|
|
129
129
|
category: research
|
|
130
130
|
profile: moka-researcher
|
|
131
|
-
models: [
|
|
131
|
+
models: [broker/gpt-5.5, kimi-for-coding/k2p6]
|
|
132
132
|
reasoning_effort: medium
|
|
133
133
|
red-tests:
|
|
134
134
|
category: red
|
|
135
135
|
profile: moka-test-writer
|
|
136
|
-
models: [
|
|
136
|
+
models: [broker/gpt-5.5, kimi-for-coding/kimi-k2-thinking]
|
|
137
137
|
reasoning_effort: high
|
|
138
138
|
green-backend:
|
|
139
139
|
category: green
|
|
140
140
|
profile: moka-code-writer
|
|
141
|
-
models: [opencode-go/qwen3.7-max,
|
|
141
|
+
models: [opencode-go/qwen3.7-max, broker/gpt-5.5, kimi-for-coding/k2p6]
|
|
142
142
|
reasoning_effort: high
|
|
143
143
|
green-frontend:
|
|
144
144
|
category: green
|
|
145
145
|
profile: moka-code-writer
|
|
146
|
-
models: [
|
|
146
|
+
models: [broker/gpt-5.5, kimi-for-coding/k2p6, opencode-go/qwen3.7-max]
|
|
147
147
|
reasoning_effort: high
|
|
148
148
|
acceptance-review:
|
|
149
149
|
category: acceptance
|
|
150
150
|
profile: moka-acceptance-reviewer
|
|
151
|
-
models: [
|
|
151
|
+
models: [broker/gpt-5.5, kimi-for-coding/kimi-k2-thinking]
|
|
152
152
|
reasoning_effort: medium
|
|
153
153
|
verification:
|
|
154
154
|
category: verification
|
|
155
155
|
profile: moka-verifier
|
|
156
|
-
models: [
|
|
156
|
+
models: [broker/gpt-5.5, kimi-for-coding/kimi-k2-thinking]
|
|
157
157
|
reasoning_effort: medium
|
|
158
158
|
learn:
|
|
159
159
|
category: learn
|
|
160
160
|
profile: moka-learner
|
|
161
|
-
models: [
|
|
161
|
+
models: [broker/gpt-5.5, kimi-for-coding/kimi-k2-thinking]
|
|
162
162
|
reasoning_effort: low
|
|
163
163
|
schedules:
|
|
164
164
|
quick-schedule:
|
package/defaults/profiles.yaml
CHANGED
|
@@ -90,7 +90,7 @@ skills:
|
|
|
90
90
|
profiles:
|
|
91
91
|
moka-orchestrator:
|
|
92
92
|
runner: opencode
|
|
93
|
-
model:
|
|
93
|
+
model: broker/gpt-5.5
|
|
94
94
|
reasoning_effort: xhigh
|
|
95
95
|
description: Orchestrate the configured pipeline and enforce gates.
|
|
96
96
|
instructions: { inline: "Orchestrate through the canonical local `moka run` supervisor. For compatibility slash commands, run the `moka run` command and flags shown in the command body. Treat execution as CLI/supervised runtime, not OpenCode-native Task execution. Enforce only package-configured gates." }
|
|
@@ -129,7 +129,7 @@ profiles:
|
|
|
129
129
|
repair: { enabled: true, max_attempts: 1 }
|
|
130
130
|
moka-inspector:
|
|
131
131
|
runner: opencode
|
|
132
|
-
model:
|
|
132
|
+
model: broker/gpt-5.5
|
|
133
133
|
reasoning_effort: low
|
|
134
134
|
description: Inspect the repository without modifying files.
|
|
135
135
|
instructions: { inline: "Inspect the repository without modifying files." }
|
|
@@ -140,7 +140,7 @@ profiles:
|
|
|
140
140
|
network: { mode: inherit }
|
|
141
141
|
moka-schedule-planner:
|
|
142
142
|
runner: opencode
|
|
143
|
-
model:
|
|
143
|
+
model: broker/gpt-5.5
|
|
144
144
|
reasoning_effort: xhigh
|
|
145
145
|
description: Refine a baseline schedule into a specialized approved-plan artifact.
|
|
146
146
|
instructions: { inline: "Generate exactly one workflow named root as an explicit schedule graph. Return YAML only." }
|
|
@@ -224,7 +224,7 @@ profiles:
|
|
|
224
224
|
repair: { enabled: true, max_attempts: 1 }
|
|
225
225
|
moka-learner:
|
|
226
226
|
runner: opencode
|
|
227
|
-
model:
|
|
227
|
+
model: broker/gpt-5.5
|
|
228
228
|
reasoning_effort: low
|
|
229
229
|
description: Store durable lessons from the completed run.
|
|
230
230
|
instructions: { inline: "Store durable lessons from the completed run when useful." }
|
package/dist/argo-submit.d.ts
CHANGED
|
@@ -34,8 +34,41 @@ declare const submitRunnerArgoWorkflowOptionsSchema: z.ZodObject<{
|
|
|
34
34
|
name: z.ZodOptional<z.ZodString>;
|
|
35
35
|
namespace: z.ZodString;
|
|
36
36
|
payloadJson: z.ZodString;
|
|
37
|
+
serviceAccountName: z.ZodOptional<z.ZodString>;
|
|
37
38
|
scheduleYaml: z.ZodString;
|
|
39
|
+
}, z.core.$strict>;
|
|
40
|
+
declare const submitDynamicRunnerArgoWorkflowOptionsSchema: z.ZodObject<{
|
|
41
|
+
brokerAuth: z.ZodObject<{
|
|
42
|
+
secretKey: z.ZodDefault<z.ZodString>;
|
|
43
|
+
secretName: z.ZodString;
|
|
44
|
+
url: z.ZodDefault<z.ZodString>;
|
|
45
|
+
}, z.core.$strict>;
|
|
46
|
+
dbAuth: z.ZodOptional<z.ZodObject<{
|
|
47
|
+
secretKey: z.ZodDefault<z.ZodString>;
|
|
48
|
+
secretName: z.ZodString;
|
|
49
|
+
}, z.core.$strict>>;
|
|
50
|
+
eventAuthSecretKey: z.ZodOptional<z.ZodString>;
|
|
51
|
+
eventAuthSecretName: z.ZodOptional<z.ZodString>;
|
|
52
|
+
generateName: z.ZodOptional<z.ZodString>;
|
|
53
|
+
gitCredentialsSecretName: z.ZodOptional<z.ZodString>;
|
|
54
|
+
githubAuthSecretName: z.ZodOptional<z.ZodString>;
|
|
55
|
+
image: z.ZodOptional<z.ZodString>;
|
|
56
|
+
imagePullPolicy: z.ZodOptional<z.ZodEnum<{
|
|
57
|
+
Always: "Always";
|
|
58
|
+
IfNotPresent: "IfNotPresent";
|
|
59
|
+
Never: "Never";
|
|
60
|
+
}>>;
|
|
61
|
+
imagePullSecretName: z.ZodOptional<z.ZodString>;
|
|
62
|
+
kubeconfigPath: z.ZodOptional<z.ZodString>;
|
|
63
|
+
mcpGatewayAuth: z.ZodOptional<z.ZodObject<{
|
|
64
|
+
secretKey: z.ZodDefault<z.ZodString>;
|
|
65
|
+
secretName: z.ZodString;
|
|
66
|
+
}, z.core.$strict>>;
|
|
67
|
+
name: z.ZodOptional<z.ZodString>;
|
|
68
|
+
namespace: z.ZodString;
|
|
69
|
+
payloadJson: z.ZodString;
|
|
38
70
|
serviceAccountName: z.ZodOptional<z.ZodString>;
|
|
71
|
+
workflowId: z.ZodString;
|
|
39
72
|
}, z.core.$strict>;
|
|
40
73
|
declare const commandScheduleOptionsSchema: z.ZodObject<{
|
|
41
74
|
command: z.ZodArray<z.ZodString>;
|
|
@@ -53,7 +86,11 @@ interface SubmitRunnerArgoWorkflowDependencies {
|
|
|
53
86
|
kubeConfig?: KubernetesArgoIoDependencies["kubeConfig"];
|
|
54
87
|
workflowApi?: WorkflowApi;
|
|
55
88
|
}
|
|
89
|
+
type SubmitDynamicRunnerArgoWorkflowOptions = z.input<typeof submitDynamicRunnerArgoWorkflowOptionsSchema> & {
|
|
90
|
+
config: PipelineConfig;
|
|
91
|
+
};
|
|
56
92
|
declare function submitRunnerArgoWorkflow(rawOptions: SubmitRunnerArgoWorkflowOptions, dependencies?: SubmitRunnerArgoWorkflowDependencies): Promise<SubmitRunnerArgoWorkflowResult>;
|
|
93
|
+
declare function submitDynamicRunnerArgoWorkflow(rawOptions: SubmitDynamicRunnerArgoWorkflowOptions, dependencies?: SubmitRunnerArgoWorkflowDependencies): Promise<SubmitRunnerArgoWorkflowResult>;
|
|
57
94
|
declare function buildCommandScheduleYaml(rawOptions: CommandScheduleOptions): string;
|
|
58
95
|
//#endregion
|
|
59
|
-
export { CommandScheduleOptions, SubmitRunnerArgoWorkflowDependencies, SubmitRunnerArgoWorkflowOptions, SubmitRunnerArgoWorkflowResult, buildCommandScheduleYaml, submitRunnerArgoWorkflow };
|
|
96
|
+
export { CommandScheduleOptions, SubmitDynamicRunnerArgoWorkflowOptions, SubmitRunnerArgoWorkflowDependencies, SubmitRunnerArgoWorkflowOptions, SubmitRunnerArgoWorkflowResult, buildCommandScheduleYaml, submitDynamicRunnerArgoWorkflow, submitRunnerArgoWorkflow };
|
package/dist/argo-submit.js
CHANGED
|
@@ -4,7 +4,7 @@ import { brokerAuthOptionSchema } from "./credentials/broker.js";
|
|
|
4
4
|
import { compileScheduleArtifact, parseScheduleArtifact } from "./planning/generate.js";
|
|
5
5
|
import { parseRunnerCommandPayload, runnerCommandPayloadSchema } from "./runner-command-contract.js";
|
|
6
6
|
import { buildRunnerTaskDescriptor } from "./runner-command/task-descriptor.js";
|
|
7
|
-
import { buildRunnerArgoWorkflowManifest, runnerArgoWorkflowManifestSchema } from "./argo-workflow.js";
|
|
7
|
+
import { buildDynamicRunnerArgoWorkflowManifest, buildRunnerArgoWorkflowManifest, runnerArgoWorkflowManifestSchema } from "./argo-workflow.js";
|
|
8
8
|
import { normalizeRunnerRepositoryForSubmit } from "./git-remote-url.js";
|
|
9
9
|
import { KubernetesArgoService, KubernetesArgoServiceLive } from "./runtime/services/kubernetes-argo-service.js";
|
|
10
10
|
import { workflowSubmitResultSchema } from "./workflow-submit-contract.js";
|
|
@@ -24,7 +24,11 @@ const configMapSchema = z.object({
|
|
|
24
24
|
namespace: z.string().min(1)
|
|
25
25
|
}).strict()
|
|
26
26
|
}).strict();
|
|
27
|
-
const
|
|
27
|
+
const createdWorkflowSchema = z.object({ metadata: z.object({
|
|
28
|
+
name: z.string().min(1).optional(),
|
|
29
|
+
uid: z.string().min(1).optional()
|
|
30
|
+
}).passthrough() }).passthrough();
|
|
31
|
+
const submitRunnerArgoWorkflowBaseOptionShape = {
|
|
28
32
|
brokerAuth: brokerAuthOptionSchema,
|
|
29
33
|
dbAuth: dbAuthOptionSchema.optional(),
|
|
30
34
|
eventAuthSecretKey: z.string().min(1).optional(),
|
|
@@ -44,18 +48,31 @@ const submitRunnerArgoWorkflowOptionsSchema = z.object({
|
|
|
44
48
|
name: z.string().min(1).optional(),
|
|
45
49
|
namespace: z.string().min(1),
|
|
46
50
|
payloadJson: z.string().min(1),
|
|
47
|
-
scheduleYaml: z.string().min(1),
|
|
48
51
|
serviceAccountName: z.string().min(1).optional()
|
|
49
|
-
}
|
|
52
|
+
};
|
|
53
|
+
const submitRunnerArgoWorkflowOptionsSchema = z.object({
|
|
54
|
+
...submitRunnerArgoWorkflowBaseOptionShape,
|
|
55
|
+
scheduleYaml: z.string().min(1)
|
|
56
|
+
}).strict().refine(hasWorkflowName, { message: "Argo submit options must declare name or generateName" });
|
|
57
|
+
const submitDynamicRunnerArgoWorkflowOptionsSchema = z.object({
|
|
58
|
+
...submitRunnerArgoWorkflowBaseOptionShape,
|
|
59
|
+
workflowId: z.string().min(1)
|
|
60
|
+
}).strict().refine(hasWorkflowName, { message: "Argo submit options must declare name or generateName" });
|
|
50
61
|
const commandScheduleOptionsSchema = z.object({
|
|
51
62
|
command: z.array(z.string().min(1)).min(1),
|
|
52
63
|
generatedAt: z.date().default(() => /* @__PURE__ */ new Date()),
|
|
53
64
|
scheduleId: scheduleIdSchema.optional(),
|
|
54
65
|
task: z.string().min(1)
|
|
55
66
|
}).strict();
|
|
67
|
+
function hasWorkflowName(options) {
|
|
68
|
+
return options.name !== void 0 || options.generateName !== void 0;
|
|
69
|
+
}
|
|
56
70
|
function submitRunnerArgoWorkflow(rawOptions, dependencies = {}) {
|
|
57
71
|
return Effect.runPromise(Effect.provide(Effect.suspend(() => submitRunnerArgoWorkflowEffect(rawOptions, dependencies)), KubernetesArgoServiceLive));
|
|
58
72
|
}
|
|
73
|
+
function submitDynamicRunnerArgoWorkflow(rawOptions, dependencies = {}) {
|
|
74
|
+
return Effect.runPromise(Effect.provide(Effect.suspend(() => submitDynamicRunnerArgoWorkflowEffect(rawOptions, dependencies)), KubernetesArgoServiceLive));
|
|
75
|
+
}
|
|
59
76
|
function submitRunnerArgoWorkflowEffect(rawOptions, dependencies) {
|
|
60
77
|
const { config, ...schemaOptions } = rawOptions;
|
|
61
78
|
const options = submitRunnerArgoWorkflowOptionsSchema.parse(schemaOptions);
|
|
@@ -149,26 +166,94 @@ function submitRunnerArgoWorkflowEffect(rawOptions, dependencies) {
|
|
|
149
166
|
namespace: options.namespace,
|
|
150
167
|
options
|
|
151
168
|
});
|
|
152
|
-
|
|
169
|
+
return workflowSubmitResult(yield* service.createWorkflow({
|
|
153
170
|
body: runnerArgoWorkflowManifestSchema.parse(workflow),
|
|
154
171
|
dependencies,
|
|
155
172
|
namespace: options.namespace,
|
|
156
173
|
options
|
|
157
|
-
})
|
|
158
|
-
const created = z.object({ metadata: z.object({
|
|
159
|
-
name: z.string().min(1).optional(),
|
|
160
|
-
uid: z.string().min(1).optional()
|
|
161
|
-
}).passthrough() }).passthrough().parse(response);
|
|
162
|
-
return workflowSubmitResultSchema.parse({
|
|
174
|
+
}), workflow, {
|
|
163
175
|
namespace: options.namespace,
|
|
164
176
|
payloadConfigMapName,
|
|
165
177
|
scheduleConfigMapName: scheduleArtifactConfigMapName,
|
|
166
|
-
taskDescriptorConfigMapName
|
|
167
|
-
workflowName: created.metadata.name ?? workflow.metadata.name,
|
|
168
|
-
workflowUid: created.metadata.uid
|
|
178
|
+
taskDescriptorConfigMapName
|
|
169
179
|
});
|
|
170
180
|
});
|
|
171
181
|
}
|
|
182
|
+
function submitDynamicRunnerArgoWorkflowEffect(rawOptions, dependencies) {
|
|
183
|
+
const { config: _config, ...schemaOptions } = rawOptions;
|
|
184
|
+
const options = submitDynamicRunnerArgoWorkflowOptionsSchema.parse(schemaOptions);
|
|
185
|
+
const { payload, payloadJson } = normalizeRunnerPayloadForSubmit({
|
|
186
|
+
payload: runnerCommandPayloadSchema.parse(parseRunnerCommandPayload(options.payloadJson)),
|
|
187
|
+
payloadJson: options.payloadJson
|
|
188
|
+
});
|
|
189
|
+
if (payload.workflow.id !== options.workflowId) throw new Error(`Runner payload workflow '${payload.workflow.id}' does not match dynamic workflow '${options.workflowId}'`);
|
|
190
|
+
const payloadConfigMapName = `pipeline-payload-${randomBytes(6).toString("hex")}`;
|
|
191
|
+
const labels = {
|
|
192
|
+
"pipeline.oisin.dev/project": payload.run.project,
|
|
193
|
+
"pipeline.oisin.dev/run-id": payload.run.id,
|
|
194
|
+
"pipeline.oisin.dev/source": "argo-workflow",
|
|
195
|
+
"pipeline.oisin.dev/workflow": options.workflowId
|
|
196
|
+
};
|
|
197
|
+
const workflow = buildDynamicRunnerArgoWorkflowManifest({
|
|
198
|
+
annotations: payload.task.kind === "ticket" ? {
|
|
199
|
+
"pipeline.oisin.dev/ticket-id": payload.task.id,
|
|
200
|
+
"pipeline.oisin.dev/ticket-project": payload.run.project,
|
|
201
|
+
"pipeline.oisin.dev/ticket-title": payload.task.title
|
|
202
|
+
} : {},
|
|
203
|
+
brokerAuth: options.brokerAuth,
|
|
204
|
+
dbAuth: options.dbAuth,
|
|
205
|
+
eventAuthSecretKey: options.eventAuthSecretKey,
|
|
206
|
+
eventAuthSecretName: options.eventAuthSecretName,
|
|
207
|
+
generateName: options.generateName,
|
|
208
|
+
gitCredentialsSecretName: options.gitCredentialsSecretName,
|
|
209
|
+
githubAuthSecretName: options.githubAuthSecretName,
|
|
210
|
+
image: options.image,
|
|
211
|
+
imagePullPolicy: options.imagePullPolicy,
|
|
212
|
+
imagePullSecretName: options.imagePullSecretName,
|
|
213
|
+
mcpGatewayAuth: options.mcpGatewayAuth,
|
|
214
|
+
labels,
|
|
215
|
+
name: options.name,
|
|
216
|
+
namespace: options.namespace,
|
|
217
|
+
payloadConfigMapName,
|
|
218
|
+
serviceAccountName: options.serviceAccountName,
|
|
219
|
+
workflowId: options.workflowId
|
|
220
|
+
});
|
|
221
|
+
return Effect.gen(function* () {
|
|
222
|
+
const service = yield* KubernetesArgoService;
|
|
223
|
+
yield* service.createConfigMap({
|
|
224
|
+
body: configMapSchema.parse({
|
|
225
|
+
apiVersion: "v1",
|
|
226
|
+
data: { "payload.json": payloadJson },
|
|
227
|
+
kind: "ConfigMap",
|
|
228
|
+
metadata: {
|
|
229
|
+
labels,
|
|
230
|
+
name: payloadConfigMapName,
|
|
231
|
+
namespace: options.namespace
|
|
232
|
+
}
|
|
233
|
+
}),
|
|
234
|
+
dependencies,
|
|
235
|
+
namespace: options.namespace,
|
|
236
|
+
options
|
|
237
|
+
});
|
|
238
|
+
return workflowSubmitResult(yield* service.createWorkflow({
|
|
239
|
+
body: runnerArgoWorkflowManifestSchema.parse(workflow),
|
|
240
|
+
dependencies,
|
|
241
|
+
namespace: options.namespace,
|
|
242
|
+
options
|
|
243
|
+
}), workflow, {
|
|
244
|
+
namespace: options.namespace,
|
|
245
|
+
payloadConfigMapName
|
|
246
|
+
});
|
|
247
|
+
});
|
|
248
|
+
}
|
|
249
|
+
function workflowSubmitResult(response, workflow, base) {
|
|
250
|
+
const created = createdWorkflowSchema.parse(response);
|
|
251
|
+
return workflowSubmitResultSchema.parse({
|
|
252
|
+
...base,
|
|
253
|
+
workflowName: created.metadata.name ?? workflow.metadata.name,
|
|
254
|
+
workflowUid: created.metadata.uid
|
|
255
|
+
});
|
|
256
|
+
}
|
|
172
257
|
function buildCommandScheduleYaml(rawOptions) {
|
|
173
258
|
const options = commandScheduleOptionsSchema.parse(rawOptions);
|
|
174
259
|
const scheduleId = options.scheduleId ?? `custom-${randomBytes(8).toString("hex")}`;
|
|
@@ -209,4 +294,4 @@ function compileSubmitArgoGraph(compiled) {
|
|
|
209
294
|
});
|
|
210
295
|
}
|
|
211
296
|
//#endregion
|
|
212
|
-
export { buildCommandScheduleYaml, submitRunnerArgoWorkflow };
|
|
297
|
+
export { buildCommandScheduleYaml, submitDynamicRunnerArgoWorkflow, submitRunnerArgoWorkflow };
|
package/dist/argo-workflow.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { WorkflowExecutionPlan } from "./planning/compile.js";
|
|
2
|
-
import { buildRunnerArgoWorkflowOptionsSchema } from "./remote/argo/model.js";
|
|
2
|
+
import { buildDynamicRunnerArgoWorkflowOptionsSchema, buildRunnerArgoWorkflowOptionsSchema } from "./remote/argo/model.js";
|
|
3
3
|
import { z } from "zod";
|
|
4
4
|
|
|
5
5
|
//#region src/argo-workflow.d.ts
|
|
@@ -66,10 +66,16 @@ declare const runnerArgoWorkflowManifestSchema: z.ZodObject<{
|
|
|
66
66
|
name: z.ZodString;
|
|
67
67
|
path: z.ZodOptional<z.ZodString>;
|
|
68
68
|
}, z.core.$strict>>>;
|
|
69
|
+
parameters: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
70
|
+
name: z.ZodString;
|
|
71
|
+
value: z.ZodString;
|
|
72
|
+
}, z.core.$strict>>>;
|
|
69
73
|
}, z.core.$strict>>;
|
|
70
74
|
dependencies: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
71
75
|
name: z.ZodString;
|
|
72
76
|
template: z.ZodString;
|
|
77
|
+
when: z.ZodOptional<z.ZodString>;
|
|
78
|
+
withParam: z.ZodOptional<z.ZodString>;
|
|
73
79
|
}, z.core.$strict>>;
|
|
74
80
|
}, z.core.$strict>>;
|
|
75
81
|
inputs: z.ZodOptional<z.ZodObject<{
|
|
@@ -83,12 +89,30 @@ declare const runnerArgoWorkflowManifestSchema: z.ZodObject<{
|
|
|
83
89
|
}, z.core.$strict>>>;
|
|
84
90
|
}, z.core.$strict>>;
|
|
85
91
|
outputs: z.ZodOptional<z.ZodObject<{
|
|
86
|
-
artifacts: z.ZodArray<z.ZodObject<{
|
|
92
|
+
artifacts: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
87
93
|
from: z.ZodOptional<z.ZodString>;
|
|
88
94
|
name: z.ZodString;
|
|
89
95
|
path: z.ZodOptional<z.ZodString>;
|
|
90
|
-
}, z.core.$strict
|
|
96
|
+
}, z.core.$strict>>>;
|
|
97
|
+
parameters: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
98
|
+
name: z.ZodString;
|
|
99
|
+
valueFrom: z.ZodObject<{
|
|
100
|
+
path: z.ZodString;
|
|
101
|
+
}, z.core.$strict>;
|
|
102
|
+
}, z.core.$strict>>>;
|
|
91
103
|
}, z.core.$strict>>;
|
|
104
|
+
steps: z.ZodOptional<z.ZodArray<z.ZodArray<z.ZodObject<{
|
|
105
|
+
arguments: z.ZodOptional<z.ZodObject<{
|
|
106
|
+
parameters: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
107
|
+
name: z.ZodString;
|
|
108
|
+
value: z.ZodString;
|
|
109
|
+
}, z.core.$strict>>>;
|
|
110
|
+
}, z.core.$strict>>;
|
|
111
|
+
name: z.ZodString;
|
|
112
|
+
template: z.ZodString;
|
|
113
|
+
when: z.ZodOptional<z.ZodString>;
|
|
114
|
+
withParam: z.ZodOptional<z.ZodString>;
|
|
115
|
+
}, z.core.$strict>>>>;
|
|
92
116
|
activeDeadlineSeconds: z.ZodOptional<z.ZodNumber>;
|
|
93
117
|
name: z.ZodString;
|
|
94
118
|
retryStrategy: z.ZodOptional<z.ZodObject<{
|
|
@@ -132,7 +156,9 @@ type ArgoWorkflowManifest = z.infer<typeof runnerArgoWorkflowManifestSchema>;
|
|
|
132
156
|
type BuildRunnerArgoWorkflowOptions = z.input<typeof buildRunnerArgoWorkflowOptionsSchema> & {
|
|
133
157
|
plan: WorkflowExecutionPlan;
|
|
134
158
|
};
|
|
159
|
+
type BuildDynamicRunnerArgoWorkflowOptions = z.input<typeof buildDynamicRunnerArgoWorkflowOptionsSchema>;
|
|
135
160
|
declare function buildRunnerArgoWorkflowManifest(rawOptions: BuildRunnerArgoWorkflowOptions): ArgoWorkflowManifest;
|
|
161
|
+
declare function buildDynamicRunnerArgoWorkflowManifest(rawOptions: BuildDynamicRunnerArgoWorkflowOptions): ArgoWorkflowManifest;
|
|
136
162
|
declare function stringifyRunnerArgoWorkflow(workflow: ArgoWorkflowManifest): string;
|
|
137
163
|
//#endregion
|
|
138
|
-
export { ArgoWorkflowManifest, BuildRunnerArgoWorkflowOptions, buildRunnerArgoWorkflowManifest, runnerArgoWorkflowManifestSchema, stringifyRunnerArgoWorkflow };
|
|
164
|
+
export { ArgoWorkflowManifest, BuildDynamicRunnerArgoWorkflowOptions, BuildRunnerArgoWorkflowOptions, buildDynamicRunnerArgoWorkflowManifest, buildRunnerArgoWorkflowManifest, runnerArgoWorkflowManifestSchema, stringifyRunnerArgoWorkflow };
|
package/dist/argo-workflow.js
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { compileArgoExecutionGraph } from "./argo-graph.js";
|
|
2
2
|
import { RUNNER_WORKFLOW_ENTRYPOINT, RUNNER_WORKFLOW_START_TASK } from "./remote/argo/policy.js";
|
|
3
|
-
import { buildRunnerArgoWorkflowOptionsSchema, createRunnerArgoWorkflowManifestSchema } from "./remote/argo/model.js";
|
|
4
|
-
import { runnerWorkflowStorage } from "./remote/argo/storage.js";
|
|
5
|
-
import { runnerCommandTemplate, runnerFinalizerTemplate, runnerLifecycleTemplate } from "./remote/argo/templates.js";
|
|
3
|
+
import { buildDynamicRunnerArgoWorkflowOptionsSchema, buildRunnerArgoWorkflowOptionsSchema, createRunnerArgoWorkflowManifestSchema } from "./remote/argo/model.js";
|
|
4
|
+
import { dynamicRunnerWorkflowStorage, runnerWorkflowStorage } from "./remote/argo/storage.js";
|
|
5
|
+
import { READY_NODE_IDS_PARAMETER, dynamicPreScheduleTemplate, dynamicReadyWaveSelectorTemplate, dynamicRunnerCommandTemplate, dynamicRunnerFinalizerTemplate, runnerCommandTemplate, runnerFinalizerTemplate, runnerLifecycleTemplate } from "./remote/argo/templates.js";
|
|
6
6
|
import { stringify } from "yaml";
|
|
7
7
|
//#region src/argo-workflow.ts
|
|
8
8
|
const runnerArgoWorkflowManifestSchema = createRunnerArgoWorkflowManifestSchema();
|
|
@@ -17,6 +17,16 @@ function buildRunnerArgoWorkflowManifest(rawOptions) {
|
|
|
17
17
|
spec: workflowSpec(options, graph.tasks, storage)
|
|
18
18
|
});
|
|
19
19
|
}
|
|
20
|
+
function buildDynamicRunnerArgoWorkflowManifest(rawOptions) {
|
|
21
|
+
const options = buildDynamicRunnerArgoWorkflowOptionsSchema.parse(rawOptions);
|
|
22
|
+
const storage = dynamicRunnerWorkflowStorage(options);
|
|
23
|
+
return runnerArgoWorkflowManifestSchema.parse({
|
|
24
|
+
apiVersion: "argoproj.io/v1alpha1",
|
|
25
|
+
kind: "Workflow",
|
|
26
|
+
metadata: dynamicWorkflowMetadata(options),
|
|
27
|
+
spec: dynamicWorkflowSpec(options, storage)
|
|
28
|
+
});
|
|
29
|
+
}
|
|
20
30
|
function stringifyRunnerArgoWorkflow(workflow) {
|
|
21
31
|
return stringify(runnerArgoWorkflowManifestSchema.parse(workflow));
|
|
22
32
|
}
|
|
@@ -40,6 +50,19 @@ function workflowMetadata(options) {
|
|
|
40
50
|
namespace: options.namespace
|
|
41
51
|
};
|
|
42
52
|
}
|
|
53
|
+
function dynamicWorkflowMetadata(options) {
|
|
54
|
+
return {
|
|
55
|
+
annotations: compactRecord(options.annotations),
|
|
56
|
+
...options.name ? { name: options.name } : {},
|
|
57
|
+
...options.generateName ? { generateName: options.generateName } : {},
|
|
58
|
+
labels: compactRecord({
|
|
59
|
+
"pipeline.oisin.dev/source": "argo-workflow",
|
|
60
|
+
"pipeline.oisin.dev/workflow": options.workflowId,
|
|
61
|
+
...options.labels
|
|
62
|
+
}),
|
|
63
|
+
namespace: options.namespace
|
|
64
|
+
};
|
|
65
|
+
}
|
|
43
66
|
function workflowSpec(options, tasks, storage) {
|
|
44
67
|
return {
|
|
45
68
|
...options.activeDeadlineSeconds ? { activeDeadlineSeconds: options.activeDeadlineSeconds } : {},
|
|
@@ -52,6 +75,18 @@ function workflowSpec(options, tasks, storage) {
|
|
|
52
75
|
volumes: storage.volumes
|
|
53
76
|
};
|
|
54
77
|
}
|
|
78
|
+
function dynamicWorkflowSpec(options, storage) {
|
|
79
|
+
return {
|
|
80
|
+
...options.activeDeadlineSeconds ? { activeDeadlineSeconds: options.activeDeadlineSeconds } : {},
|
|
81
|
+
entrypoint: RUNNER_WORKFLOW_ENTRYPOINT,
|
|
82
|
+
...options.imagePullSecretName ? { imagePullSecrets: [{ name: options.imagePullSecretName }] } : {},
|
|
83
|
+
serviceAccountName: options.serviceAccountName,
|
|
84
|
+
onExit: "pipeline-finalizer",
|
|
85
|
+
templates: dynamicWorkflowTemplates(options, storage.volumeMounts),
|
|
86
|
+
...options.ttlStrategy ? { ttlStrategy: options.ttlStrategy } : {},
|
|
87
|
+
volumes: storage.volumes
|
|
88
|
+
};
|
|
89
|
+
}
|
|
55
90
|
function workflowTemplates(options, tasks, volumeMounts) {
|
|
56
91
|
return [
|
|
57
92
|
workflowDagTemplate(tasks),
|
|
@@ -60,6 +95,18 @@ function workflowTemplates(options, tasks, volumeMounts) {
|
|
|
60
95
|
runnerFinalizerTemplate(options, volumeMounts)
|
|
61
96
|
];
|
|
62
97
|
}
|
|
98
|
+
function dynamicWorkflowTemplates(options, volumeMounts) {
|
|
99
|
+
return [
|
|
100
|
+
dynamicWorkflowEntrypointTemplate(),
|
|
101
|
+
dynamicDrainTemplate(),
|
|
102
|
+
dynamicPreScheduleTemplate("pre-research", options, volumeMounts),
|
|
103
|
+
dynamicPreScheduleTemplate("pre-planning", options, volumeMounts),
|
|
104
|
+
dynamicPreScheduleTemplate("generate-schedule", options, volumeMounts),
|
|
105
|
+
dynamicReadyWaveSelectorTemplate(options, volumeMounts),
|
|
106
|
+
dynamicRunnerCommandTemplate(options, volumeMounts),
|
|
107
|
+
dynamicRunnerFinalizerTemplate(options, volumeMounts)
|
|
108
|
+
];
|
|
109
|
+
}
|
|
63
110
|
function workflowDagTemplate(tasks) {
|
|
64
111
|
return {
|
|
65
112
|
dag: { tasks: [{
|
|
@@ -73,8 +120,58 @@ function workflowDagTemplate(tasks) {
|
|
|
73
120
|
name: RUNNER_WORKFLOW_ENTRYPOINT
|
|
74
121
|
};
|
|
75
122
|
}
|
|
123
|
+
function dynamicWorkflowEntrypointTemplate() {
|
|
124
|
+
return {
|
|
125
|
+
name: RUNNER_WORKFLOW_ENTRYPOINT,
|
|
126
|
+
steps: [
|
|
127
|
+
[{
|
|
128
|
+
name: "pre-research",
|
|
129
|
+
template: "pre-research"
|
|
130
|
+
}],
|
|
131
|
+
[{
|
|
132
|
+
name: "pre-planning",
|
|
133
|
+
template: "pre-planning"
|
|
134
|
+
}],
|
|
135
|
+
[{
|
|
136
|
+
name: "generate-schedule",
|
|
137
|
+
template: "generate-schedule"
|
|
138
|
+
}],
|
|
139
|
+
[{
|
|
140
|
+
name: "drain-ready-waves",
|
|
141
|
+
template: "drain-ready-waves"
|
|
142
|
+
}]
|
|
143
|
+
]
|
|
144
|
+
};
|
|
145
|
+
}
|
|
146
|
+
function dynamicDrainTemplate() {
|
|
147
|
+
const readyExpression = `{{steps.select-ready-wave.outputs.parameters.${READY_NODE_IDS_PARAMETER}}} != []`;
|
|
148
|
+
return {
|
|
149
|
+
name: "drain-ready-waves",
|
|
150
|
+
steps: [
|
|
151
|
+
[{
|
|
152
|
+
name: "select-ready-wave",
|
|
153
|
+
template: "select-ready-wave"
|
|
154
|
+
}],
|
|
155
|
+
[{
|
|
156
|
+
arguments: { parameters: [{
|
|
157
|
+
name: "node-id",
|
|
158
|
+
value: "{{item}}"
|
|
159
|
+
}] },
|
|
160
|
+
name: "run-ready-node",
|
|
161
|
+
template: "runner-command",
|
|
162
|
+
when: readyExpression,
|
|
163
|
+
withParam: `{{steps.select-ready-wave.outputs.parameters.${READY_NODE_IDS_PARAMETER}}}`
|
|
164
|
+
}],
|
|
165
|
+
[{
|
|
166
|
+
name: "drain-next-wave",
|
|
167
|
+
template: "drain-ready-waves",
|
|
168
|
+
when: readyExpression
|
|
169
|
+
}]
|
|
170
|
+
]
|
|
171
|
+
};
|
|
172
|
+
}
|
|
76
173
|
function compactRecord(input) {
|
|
77
174
|
return Object.fromEntries(Object.entries(input).filter((entry) => entry[1] !== void 0));
|
|
78
175
|
}
|
|
79
176
|
//#endregion
|
|
80
|
-
export { buildRunnerArgoWorkflowManifest, runnerArgoWorkflowManifestSchema, stringifyRunnerArgoWorkflow };
|
|
177
|
+
export { buildDynamicRunnerArgoWorkflowManifest, buildRunnerArgoWorkflowManifest, runnerArgoWorkflowManifestSchema, stringifyRunnerArgoWorkflow };
|
|
@@ -1,6 +1,8 @@
|
|
|
1
1
|
import { runRunnerCommand } from "../runner-command/run.js";
|
|
2
2
|
import { runRunnerFinalize } from "../runner-command/finalize.js";
|
|
3
3
|
import { runRunnerLifecycle } from "../runner-command/lifecycle.js";
|
|
4
|
+
import { runPreSchedulePhase } from "../runner-command/pre-schedule.js";
|
|
5
|
+
import { runSelectReadyWave } from "../runner-command/select-ready-wave.js";
|
|
4
6
|
import { Context, Effect, Layer } from "effect";
|
|
5
7
|
//#region src/commands/runner-command-command.ts
|
|
6
8
|
var RunnerCommandService = class extends Context.Service()("RunnerCommandService") {};
|
|
@@ -13,9 +15,17 @@ const RunnerCommandServiceLive = Layer.succeed(RunnerCommandService, {
|
|
|
13
15
|
catch: (error) => error,
|
|
14
16
|
try: () => runRunnerLifecycle(options)
|
|
15
17
|
}),
|
|
18
|
+
preSchedule: (options) => Effect.tryPromise({
|
|
19
|
+
catch: (error) => error,
|
|
20
|
+
try: () => runPreSchedulePhase(options)
|
|
21
|
+
}),
|
|
16
22
|
run: (options) => Effect.tryPromise({
|
|
17
23
|
catch: (error) => error,
|
|
18
24
|
try: () => runRunnerCommand(options)
|
|
25
|
+
}),
|
|
26
|
+
selectReadyWave: (options) => Effect.tryPromise({
|
|
27
|
+
catch: (error) => error,
|
|
28
|
+
try: () => runSelectReadyWave(options)
|
|
19
29
|
})
|
|
20
30
|
});
|
|
21
31
|
const setProcessExitCode = (exitCode) => Effect.sync(() => {
|
|
@@ -30,11 +40,19 @@ const runRunnerLifecycleEffect = (options) => Effect.gen(function* () {
|
|
|
30
40
|
const runRunnerFinalizeEffect = (options) => Effect.gen(function* () {
|
|
31
41
|
yield* setProcessExitCode(yield* (yield* RunnerCommandService).finalize(options));
|
|
32
42
|
});
|
|
43
|
+
const runPreScheduleEffect = (options) => Effect.gen(function* () {
|
|
44
|
+
yield* setProcessExitCode(yield* (yield* RunnerCommandService).preSchedule(options));
|
|
45
|
+
});
|
|
46
|
+
const runSelectReadyWaveEffect = (options) => Effect.gen(function* () {
|
|
47
|
+
yield* setProcessExitCode(yield* (yield* RunnerCommandService).selectReadyWave(options));
|
|
48
|
+
});
|
|
33
49
|
const runRunnerProgram = (program) => Effect.runPromise(Effect.provide(program, RunnerCommandServiceLive));
|
|
34
50
|
function registerRunnerCommandCommand(program) {
|
|
35
|
-
program.command("runner-command").description("Run one scheduled Argo Workflow task").requiredOption("--payload-file <path>", "Path to the runner payload JSON").
|
|
51
|
+
program.command("runner-command").description("Run one scheduled Argo Workflow task").requiredOption("--payload-file <path>", "Path to the runner payload JSON").option("--node-id <id>", "Node id to execute without a task descriptor").option("--schedule-file <path>", "Path to the schedule artifact YAML").option("--schedule-source <source>", "Schedule source: file or db").action((options) => runRunnerProgram(runRunnerCommandEffect(options)));
|
|
36
52
|
program.command("runner-lifecycle").description("Run one Argo Workflow lifecycle phase").requiredOption("--phase <phase>", "Lifecycle phase to run").requiredOption("--payload-file <path>", "Path to the runner payload JSON").requiredOption("--schedule-file <path>", "Path to the schedule artifact YAML").action((options) => runRunnerProgram(runRunnerLifecycleEffect(options)));
|
|
37
|
-
program.command("runner-
|
|
53
|
+
program.command("runner-pre-schedule").description("Run one dynamic pre-schedule phase").requiredOption("--phase <phase>", "pre-research, pre-planning, or generate-schedule").requiredOption("--payload-file <path>", "Path to the runner payload JSON").action((options) => runRunnerProgram(runPreScheduleEffect(options)));
|
|
54
|
+
program.command("runner-finalize").description("Finalize one Argo Workflow run").requiredOption("--payload-file <path>", "Path to the runner payload JSON").option("--schedule-file <path>", "Path to the schedule artifact YAML").option("--schedule-source <source>", "Schedule source: file or db").requiredOption("--argo-status <status>", "Argo Workflow status").action((options) => runRunnerProgram(runRunnerFinalizeEffect(options)));
|
|
55
|
+
program.command("runner-select-ready-wave").description("Select DB-ready nodes for the next dynamic Argo wave").requiredOption("--payload-file <path>", "Path to the runner payload JSON").requiredOption("--output-file <path>", "Path where the ready node id JSON array is written").action((options) => runRunnerProgram(runSelectReadyWaveEffect(options)));
|
|
38
56
|
}
|
|
39
57
|
//#endregion
|
|
40
58
|
export { registerRunnerCommandCommand };
|