@tagma/sdk 0.6.11 → 0.7.0
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 +91 -18
- package/dist/bootstrap.d.ts +6 -6
- package/dist/bootstrap.d.ts.map +1 -1
- package/dist/bootstrap.js +5 -6
- package/dist/bootstrap.js.map +1 -1
- package/dist/config-ops.d.ts +4 -2
- package/dist/config-ops.d.ts.map +1 -1
- package/dist/config-ops.js +16 -2
- package/dist/config-ops.js.map +1 -1
- package/dist/config.d.ts +8 -0
- package/dist/config.d.ts.map +1 -0
- package/dist/config.js +5 -0
- package/dist/config.js.map +1 -0
- package/dist/core/dataflow.d.ts +23 -0
- package/dist/core/dataflow.d.ts.map +1 -0
- package/dist/core/dataflow.js +63 -0
- package/dist/core/dataflow.js.map +1 -0
- package/dist/core/log-prune.d.ts +16 -0
- package/dist/core/log-prune.d.ts.map +1 -0
- package/dist/core/log-prune.js +34 -0
- package/dist/core/log-prune.js.map +1 -0
- package/dist/core/preflight.d.ts +13 -0
- package/dist/core/preflight.d.ts.map +1 -0
- package/dist/core/preflight.js +61 -0
- package/dist/core/preflight.js.map +1 -0
- package/dist/core/run-context.d.ts +52 -0
- package/dist/core/run-context.d.ts.map +1 -0
- package/dist/core/run-context.js +156 -0
- package/dist/core/run-context.js.map +1 -0
- package/dist/core/run-state.d.ts +25 -0
- package/dist/core/run-state.d.ts.map +1 -0
- package/dist/core/run-state.js +93 -0
- package/dist/core/run-state.js.map +1 -0
- package/dist/core/scheduler.d.ts +13 -0
- package/dist/core/scheduler.d.ts.map +1 -0
- package/dist/core/scheduler.js +35 -0
- package/dist/core/scheduler.js.map +1 -0
- package/dist/core/task-executor.d.ts +13 -0
- package/dist/core/task-executor.d.ts.map +1 -0
- package/dist/core/task-executor.js +639 -0
- package/dist/core/task-executor.js.map +1 -0
- package/dist/core/trigger-errors.d.ts +9 -0
- package/dist/core/trigger-errors.d.ts.map +1 -0
- package/dist/core/trigger-errors.js +15 -0
- package/dist/core/trigger-errors.js.map +1 -0
- package/dist/engine.d.ts +6 -14
- package/dist/engine.d.ts.map +1 -1
- package/dist/engine.js +71 -990
- package/dist/engine.js.map +1 -1
- package/dist/index.d.ts +9 -0
- package/dist/index.d.ts.map +1 -0
- package/dist/index.js +6 -0
- package/dist/index.js.map +1 -0
- package/dist/pipeline-definition.d.ts +3 -0
- package/dist/pipeline-definition.d.ts.map +1 -0
- package/dist/pipeline-definition.js +4 -0
- package/dist/pipeline-definition.js.map +1 -0
- package/dist/pipeline-runner.d.ts +2 -1
- package/dist/pipeline-runner.d.ts.map +1 -1
- package/dist/pipeline-runner.js +2 -2
- package/dist/pipeline-runner.js.map +1 -1
- package/dist/plugins.d.ts +5 -0
- package/dist/plugins.d.ts.map +1 -0
- package/dist/plugins.js +3 -0
- package/dist/plugins.js.map +1 -0
- package/dist/ports.d.ts +23 -1
- package/dist/ports.d.ts.map +1 -1
- package/dist/ports.js +160 -0
- package/dist/ports.js.map +1 -1
- package/dist/registry.d.ts +3 -19
- package/dist/registry.d.ts.map +1 -1
- package/dist/registry.js +7 -35
- package/dist/registry.js.map +1 -1
- package/dist/schema.d.ts.map +1 -1
- package/dist/schema.js +7 -3
- package/dist/schema.js.map +1 -1
- package/dist/tagma.d.ts +24 -0
- package/dist/tagma.d.ts.map +1 -0
- package/dist/tagma.js +23 -0
- package/dist/tagma.js.map +1 -0
- package/dist/utils-api.d.ts +2 -0
- package/dist/utils-api.d.ts.map +1 -0
- package/dist/utils-api.js +2 -0
- package/dist/utils-api.js.map +1 -0
- package/dist/validate-raw.js +118 -0
- package/dist/validate-raw.js.map +1 -1
- package/dist/yaml.d.ts +4 -0
- package/dist/yaml.d.ts.map +1 -0
- package/dist/yaml.js +3 -0
- package/dist/yaml.js.map +1 -0
- package/package.json +53 -8
- package/src/bootstrap.ts +6 -6
- package/src/config-ops.ts +12 -2
- package/src/config.ts +26 -0
- package/src/core/dataflow.test.ts +167 -0
- package/src/core/dataflow.ts +118 -0
- package/src/core/log-prune.test.ts +58 -0
- package/src/core/log-prune.ts +43 -0
- package/src/core/preflight.test.ts +49 -0
- package/src/core/preflight.ts +89 -0
- package/src/core/run-context.test.ts +244 -0
- package/src/core/run-context.ts +207 -0
- package/src/core/run-state.test.ts +98 -0
- package/src/core/run-state.ts +122 -0
- package/src/core/scheduler.test.ts +83 -0
- package/src/core/scheduler.ts +42 -0
- package/src/core/task-executor.ts +803 -0
- package/src/core/trigger-errors.ts +15 -0
- package/src/engine-ports.test.ts +66 -0
- package/src/engine-task-type.test.ts +56 -0
- package/src/engine.ts +86 -1180
- package/src/index.ts +28 -0
- package/src/pipeline-definition.ts +5 -0
- package/src/pipeline-runner.ts +3 -2
- package/src/plugin-registry.test.ts +7 -10
- package/src/plugins.ts +18 -0
- package/src/ports.test.ts +127 -0
- package/src/ports.ts +224 -1
- package/src/registry.ts +7 -49
- package/src/schema-ports.test.ts +86 -0
- package/src/schema.ts +7 -3
- package/src/tagma.test.ts +84 -0
- package/src/tagma.ts +47 -0
- package/src/utils-api.ts +8 -0
- package/src/validate-raw-ports.test.ts +66 -0
- package/src/validate-raw.ts +137 -0
- package/src/yaml.ts +11 -0
- package/dist/sdk.d.ts +0 -32
- package/dist/sdk.d.ts.map +0 -1
- package/dist/sdk.js +0 -41
- package/dist/sdk.js.map +0 -1
- package/src/sdk.ts +0 -147
|
@@ -0,0 +1,98 @@
|
|
|
1
|
+
import { describe, expect, test } from 'bun:test';
|
|
2
|
+
import {
|
|
3
|
+
isTerminal,
|
|
4
|
+
freezeStates,
|
|
5
|
+
summarizeStates,
|
|
6
|
+
toRunTaskState,
|
|
7
|
+
} from './run-state';
|
|
8
|
+
import type { TaskState, TaskStatus } from '../types';
|
|
9
|
+
|
|
10
|
+
describe('isTerminal', () => {
|
|
11
|
+
test('returns true for terminal statuses', () => {
|
|
12
|
+
expect(isTerminal('success')).toBe(true);
|
|
13
|
+
expect(isTerminal('failed')).toBe(true);
|
|
14
|
+
expect(isTerminal('timeout')).toBe(true);
|
|
15
|
+
expect(isTerminal('skipped')).toBe(true);
|
|
16
|
+
expect(isTerminal('blocked')).toBe(true);
|
|
17
|
+
});
|
|
18
|
+
test('returns false for non-terminal statuses', () => {
|
|
19
|
+
expect(isTerminal('idle')).toBe(false);
|
|
20
|
+
expect(isTerminal('waiting')).toBe(false);
|
|
21
|
+
expect(isTerminal('running')).toBe(false);
|
|
22
|
+
});
|
|
23
|
+
});
|
|
24
|
+
|
|
25
|
+
function makeState(status: TaskStatus, opts: Partial<TaskState> = {}): TaskState {
|
|
26
|
+
return {
|
|
27
|
+
config: { id: 't', name: 't' } as TaskState['config'],
|
|
28
|
+
trackConfig: { id: 'tr', name: 'tr', tasks: [] } as TaskState['trackConfig'],
|
|
29
|
+
status,
|
|
30
|
+
result: null,
|
|
31
|
+
startedAt: null,
|
|
32
|
+
finishedAt: null,
|
|
33
|
+
...opts,
|
|
34
|
+
};
|
|
35
|
+
}
|
|
36
|
+
|
|
37
|
+
describe('freezeStates', () => {
|
|
38
|
+
test('produces a deep copy that survives source mutation', () => {
|
|
39
|
+
const src = new Map<string, TaskState>();
|
|
40
|
+
src.set('a', makeState('success'));
|
|
41
|
+
const frozen = freezeStates(src);
|
|
42
|
+
src.get('a')!.status = 'failed';
|
|
43
|
+
expect(frozen.get('a')!.status).toBe('success');
|
|
44
|
+
});
|
|
45
|
+
|
|
46
|
+
test('copies result object so mutation does not bleed through', () => {
|
|
47
|
+
const src = new Map<string, TaskState>();
|
|
48
|
+
src.set('a', makeState('success', {
|
|
49
|
+
result: {
|
|
50
|
+
exitCode: 0,
|
|
51
|
+
stdout: 'x',
|
|
52
|
+
stderr: '',
|
|
53
|
+
stdoutPath: null,
|
|
54
|
+
stderrPath: null,
|
|
55
|
+
durationMs: 1,
|
|
56
|
+
sessionId: null,
|
|
57
|
+
normalizedOutput: null,
|
|
58
|
+
outputs: null,
|
|
59
|
+
} as TaskState['result'],
|
|
60
|
+
}));
|
|
61
|
+
const frozen = freezeStates(src);
|
|
62
|
+
src.get('a')!.result!.stdout = 'mutated';
|
|
63
|
+
expect(frozen.get('a')!.result!.stdout).toBe('x');
|
|
64
|
+
});
|
|
65
|
+
});
|
|
66
|
+
|
|
67
|
+
describe('summarizeStates', () => {
|
|
68
|
+
test('counts each terminal status into its own bucket', () => {
|
|
69
|
+
const m = new Map<string, TaskState>();
|
|
70
|
+
m.set('a', makeState('success'));
|
|
71
|
+
m.set('b', makeState('failed'));
|
|
72
|
+
m.set('c', makeState('skipped'));
|
|
73
|
+
m.set('d', makeState('timeout'));
|
|
74
|
+
m.set('e', makeState('blocked'));
|
|
75
|
+
m.set('f', makeState('running'));
|
|
76
|
+
expect(summarizeStates(m)).toEqual({
|
|
77
|
+
total: 6,
|
|
78
|
+
success: 1,
|
|
79
|
+
failed: 1,
|
|
80
|
+
skipped: 1,
|
|
81
|
+
timeout: 1,
|
|
82
|
+
blocked: 1,
|
|
83
|
+
});
|
|
84
|
+
});
|
|
85
|
+
});
|
|
86
|
+
|
|
87
|
+
describe('toRunTaskState', () => {
|
|
88
|
+
test('projects null result onto wire shape with empty stdout/stderr', () => {
|
|
89
|
+
const wire = toRunTaskState('t1', 'trk', 'Task 1', makeState('idle'));
|
|
90
|
+
expect(wire.taskId).toBe('t1');
|
|
91
|
+
expect(wire.trackId).toBe('trk');
|
|
92
|
+
expect(wire.status).toBe('idle');
|
|
93
|
+
expect(wire.stdout).toBe('');
|
|
94
|
+
expect(wire.stderr).toBe('');
|
|
95
|
+
expect(wire.exitCode).toBeNull();
|
|
96
|
+
expect(wire.logs).toEqual([]);
|
|
97
|
+
});
|
|
98
|
+
});
|
|
@@ -0,0 +1,122 @@
|
|
|
1
|
+
import type {
|
|
2
|
+
TaskState,
|
|
3
|
+
TaskStatus,
|
|
4
|
+
RunTaskState,
|
|
5
|
+
Permissions,
|
|
6
|
+
} from '../types';
|
|
7
|
+
|
|
8
|
+
export function isTerminal(status: TaskStatus): boolean {
|
|
9
|
+
return (
|
|
10
|
+
status === 'success' ||
|
|
11
|
+
status === 'failed' ||
|
|
12
|
+
status === 'timeout' ||
|
|
13
|
+
status === 'skipped' ||
|
|
14
|
+
status === 'blocked'
|
|
15
|
+
);
|
|
16
|
+
}
|
|
17
|
+
|
|
18
|
+
/** Return a deep-copied, caller-safe snapshot of the states map. */
|
|
19
|
+
export function freezeStates(
|
|
20
|
+
states: Map<string, TaskState>,
|
|
21
|
+
): ReadonlyMap<string, TaskState> {
|
|
22
|
+
const copy = new Map<string, TaskState>();
|
|
23
|
+
for (const [id, s] of states) {
|
|
24
|
+
copy.set(id, {
|
|
25
|
+
config: { ...s.config },
|
|
26
|
+
trackConfig: { ...s.trackConfig },
|
|
27
|
+
status: s.status,
|
|
28
|
+
result: s.result ? { ...s.result } : null,
|
|
29
|
+
startedAt: s.startedAt,
|
|
30
|
+
finishedAt: s.finishedAt,
|
|
31
|
+
});
|
|
32
|
+
}
|
|
33
|
+
return copy;
|
|
34
|
+
}
|
|
35
|
+
|
|
36
|
+
export interface RunSummary {
|
|
37
|
+
total: number;
|
|
38
|
+
success: number;
|
|
39
|
+
failed: number;
|
|
40
|
+
skipped: number;
|
|
41
|
+
timeout: number;
|
|
42
|
+
blocked: number;
|
|
43
|
+
}
|
|
44
|
+
|
|
45
|
+
/**
|
|
46
|
+
* Tally terminal task counts. Idle/waiting/running tasks are counted in
|
|
47
|
+
* `total` but not in any per-status bucket — same semantics as the
|
|
48
|
+
* original engine.ts summary loop.
|
|
49
|
+
*/
|
|
50
|
+
export function summarizeStates(
|
|
51
|
+
states: ReadonlyMap<string, TaskState>,
|
|
52
|
+
): RunSummary {
|
|
53
|
+
const summary: RunSummary = {
|
|
54
|
+
total: 0,
|
|
55
|
+
success: 0,
|
|
56
|
+
failed: 0,
|
|
57
|
+
skipped: 0,
|
|
58
|
+
timeout: 0,
|
|
59
|
+
blocked: 0,
|
|
60
|
+
};
|
|
61
|
+
for (const [, state] of states) {
|
|
62
|
+
summary.total++;
|
|
63
|
+
switch (state.status) {
|
|
64
|
+
case 'success':
|
|
65
|
+
summary.success++;
|
|
66
|
+
break;
|
|
67
|
+
case 'failed':
|
|
68
|
+
summary.failed++;
|
|
69
|
+
break;
|
|
70
|
+
case 'skipped':
|
|
71
|
+
summary.skipped++;
|
|
72
|
+
break;
|
|
73
|
+
case 'timeout':
|
|
74
|
+
summary.timeout++;
|
|
75
|
+
break;
|
|
76
|
+
case 'blocked':
|
|
77
|
+
summary.blocked++;
|
|
78
|
+
break;
|
|
79
|
+
}
|
|
80
|
+
}
|
|
81
|
+
return summary;
|
|
82
|
+
}
|
|
83
|
+
|
|
84
|
+
/**
|
|
85
|
+
* Project the engine's internal TaskState onto the wire RunTaskState
|
|
86
|
+
* shape. `logs` / `totalLogCount` default to empty — they are populated
|
|
87
|
+
* on the server side from streamed `task_log` events, not from state.
|
|
88
|
+
*/
|
|
89
|
+
export function toRunTaskState(
|
|
90
|
+
taskId: string,
|
|
91
|
+
trackId: string,
|
|
92
|
+
taskName: string,
|
|
93
|
+
state: TaskState,
|
|
94
|
+
): RunTaskState {
|
|
95
|
+
const result = state.result;
|
|
96
|
+
const cfg = state.config;
|
|
97
|
+
return {
|
|
98
|
+
taskId,
|
|
99
|
+
trackId,
|
|
100
|
+
taskName,
|
|
101
|
+
status: state.status,
|
|
102
|
+
startedAt: state.startedAt,
|
|
103
|
+
finishedAt: state.finishedAt,
|
|
104
|
+
durationMs: result?.durationMs ?? null,
|
|
105
|
+
exitCode: result?.exitCode ?? null,
|
|
106
|
+
stdout: result?.stdout ?? '',
|
|
107
|
+
stderr: result?.stderr ?? '',
|
|
108
|
+
stdoutPath: result?.stdoutPath ?? null,
|
|
109
|
+
stderrPath: result?.stderrPath ?? null,
|
|
110
|
+
stdoutBytes: result?.stdoutBytes ?? null,
|
|
111
|
+
stderrBytes: result?.stderrBytes ?? null,
|
|
112
|
+
sessionId: result?.sessionId ?? null,
|
|
113
|
+
normalizedOutput: result?.normalizedOutput ?? null,
|
|
114
|
+
resolvedDriver: cfg.driver ?? null,
|
|
115
|
+
resolvedModel: cfg.model ?? null,
|
|
116
|
+
resolvedPermissions: (cfg.permissions as Permissions | undefined) ?? null,
|
|
117
|
+
outputs: result?.outputs ?? null,
|
|
118
|
+
inputs: null,
|
|
119
|
+
logs: [],
|
|
120
|
+
totalLogCount: 0,
|
|
121
|
+
};
|
|
122
|
+
}
|
|
@@ -0,0 +1,83 @@
|
|
|
1
|
+
import { describe, expect, test } from 'bun:test';
|
|
2
|
+
import { buildDag } from '../dag';
|
|
3
|
+
import type { PipelineConfig } from '../types';
|
|
4
|
+
import { RunContext } from './run-context';
|
|
5
|
+
import {
|
|
6
|
+
allTasksTerminal,
|
|
7
|
+
findLaunchableTasks,
|
|
8
|
+
skipNonTerminalTasks,
|
|
9
|
+
} from './scheduler';
|
|
10
|
+
|
|
11
|
+
function makeContext(config: PipelineConfig): RunContext {
|
|
12
|
+
return new RunContext({
|
|
13
|
+
runId: 'run_scheduler',
|
|
14
|
+
dag: buildDag(config),
|
|
15
|
+
config,
|
|
16
|
+
workDir: '/tmp/wd',
|
|
17
|
+
pipelineInfo: {
|
|
18
|
+
name: config.name,
|
|
19
|
+
run_id: 'run_scheduler',
|
|
20
|
+
started_at: '2026-04-26T00:00:00Z',
|
|
21
|
+
},
|
|
22
|
+
});
|
|
23
|
+
}
|
|
24
|
+
|
|
25
|
+
const chainConfig: PipelineConfig = {
|
|
26
|
+
name: 'p',
|
|
27
|
+
tracks: [
|
|
28
|
+
{
|
|
29
|
+
id: 't',
|
|
30
|
+
name: 'T',
|
|
31
|
+
tasks: [
|
|
32
|
+
{ id: 'a', name: 'A', command: 'echo a' },
|
|
33
|
+
{ id: 'b', name: 'B', command: 'echo b', depends_on: ['a'] },
|
|
34
|
+
{ id: 'c', name: 'C', command: 'echo c' },
|
|
35
|
+
],
|
|
36
|
+
},
|
|
37
|
+
],
|
|
38
|
+
};
|
|
39
|
+
|
|
40
|
+
describe('findLaunchableTasks', () => {
|
|
41
|
+
test('returns waiting roots that are not already running', () => {
|
|
42
|
+
const ctx = makeContext(chainConfig);
|
|
43
|
+
for (const state of ctx.states.values()) state.status = 'waiting';
|
|
44
|
+
|
|
45
|
+
expect(findLaunchableTasks(ctx, new Set())).toEqual(['t.a', 't.c']);
|
|
46
|
+
expect(findLaunchableTasks(ctx, new Set(['t.a']))).toEqual(['t.c']);
|
|
47
|
+
});
|
|
48
|
+
|
|
49
|
+
test('returns dependents only after dependencies are terminal', () => {
|
|
50
|
+
const ctx = makeContext(chainConfig);
|
|
51
|
+
for (const state of ctx.states.values()) state.status = 'waiting';
|
|
52
|
+
|
|
53
|
+
expect(findLaunchableTasks(ctx, new Set())).not.toContain('t.b');
|
|
54
|
+
ctx.states.get('t.a')!.status = 'success';
|
|
55
|
+
expect(findLaunchableTasks(ctx, new Set())).toContain('t.b');
|
|
56
|
+
});
|
|
57
|
+
});
|
|
58
|
+
|
|
59
|
+
describe('allTasksTerminal', () => {
|
|
60
|
+
test('returns true only when every task is terminal', () => {
|
|
61
|
+
const ctx = makeContext(chainConfig);
|
|
62
|
+
for (const state of ctx.states.values()) state.status = 'success';
|
|
63
|
+
expect(allTasksTerminal(ctx)).toBe(true);
|
|
64
|
+
ctx.states.get('t.b')!.status = 'waiting';
|
|
65
|
+
expect(allTasksTerminal(ctx)).toBe(false);
|
|
66
|
+
});
|
|
67
|
+
});
|
|
68
|
+
|
|
69
|
+
describe('skipNonTerminalTasks', () => {
|
|
70
|
+
test('marks every non-terminal task as skipped and leaves terminal tasks alone', () => {
|
|
71
|
+
const ctx = makeContext(chainConfig);
|
|
72
|
+
ctx.states.get('t.a')!.status = 'success';
|
|
73
|
+
ctx.states.get('t.b')!.status = 'waiting';
|
|
74
|
+
ctx.states.get('t.c')!.status = 'running';
|
|
75
|
+
|
|
76
|
+
skipNonTerminalTasks(ctx, '2026-04-26T01:00:00Z');
|
|
77
|
+
|
|
78
|
+
expect(ctx.states.get('t.a')!.status).toBe('success');
|
|
79
|
+
expect(ctx.states.get('t.b')!.status).toBe('skipped');
|
|
80
|
+
expect(ctx.states.get('t.b')!.finishedAt).toBe('2026-04-26T01:00:00Z');
|
|
81
|
+
expect(ctx.states.get('t.c')!.status).toBe('skipped');
|
|
82
|
+
});
|
|
83
|
+
});
|
|
@@ -0,0 +1,42 @@
|
|
|
1
|
+
import type { RunContext } from './run-context';
|
|
2
|
+
import { isTerminal } from './run-state';
|
|
3
|
+
import { nowISO } from '../utils';
|
|
4
|
+
|
|
5
|
+
/**
|
|
6
|
+
* Return waiting tasks whose dependency states are terminal and which are not
|
|
7
|
+
* already in flight. The caller owns actually launching them.
|
|
8
|
+
*/
|
|
9
|
+
export function findLaunchableTasks(
|
|
10
|
+
ctx: RunContext,
|
|
11
|
+
runningTaskIds: ReadonlySet<string>,
|
|
12
|
+
): string[] {
|
|
13
|
+
const launchable: string[] = [];
|
|
14
|
+
for (const [id, state] of ctx.states) {
|
|
15
|
+
if (state.status !== 'waiting' || runningTaskIds.has(id)) continue;
|
|
16
|
+
const node = ctx.dag.nodes.get(id)!;
|
|
17
|
+
const allDepsTerminal =
|
|
18
|
+
node.dependsOn.length === 0 ||
|
|
19
|
+
node.dependsOn.every((depId) => isTerminal(ctx.states.get(depId)!.status));
|
|
20
|
+
if (allDepsTerminal) launchable.push(id);
|
|
21
|
+
}
|
|
22
|
+
return launchable;
|
|
23
|
+
}
|
|
24
|
+
|
|
25
|
+
export function allTasksTerminal(ctx: RunContext): boolean {
|
|
26
|
+
return [...ctx.states.values()].every((state) => isTerminal(state.status));
|
|
27
|
+
}
|
|
28
|
+
|
|
29
|
+
/**
|
|
30
|
+
* Abort cleanup helper: after in-flight tasks settle, any remaining
|
|
31
|
+
* non-terminal tasks are waiting/idle tasks that were never started.
|
|
32
|
+
*/
|
|
33
|
+
export function skipNonTerminalTasks(
|
|
34
|
+
ctx: RunContext,
|
|
35
|
+
finishedAt = nowISO(),
|
|
36
|
+
): void {
|
|
37
|
+
for (const [id, state] of ctx.states) {
|
|
38
|
+
if (isTerminal(state.status)) continue;
|
|
39
|
+
state.finishedAt = finishedAt;
|
|
40
|
+
ctx.setTaskStatus(id, 'skipped');
|
|
41
|
+
}
|
|
42
|
+
}
|