@atolis-hq/wake 0.2.45 → 0.2.46
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/dist/src/core/tick-runner.js +10 -0
- package/dist/src/version.js +1 -1
- package/package.json +1 -1
|
@@ -400,7 +400,17 @@ export function createTickRunner(deps) {
|
|
|
400
400
|
return watch;
|
|
401
401
|
}
|
|
402
402
|
async function markPendingActionableIssues(projections) {
|
|
403
|
+
const activeRunWorkItemKeys = new Set();
|
|
404
|
+
const now = deps.clock.now();
|
|
405
|
+
for (const record of await deps.stateStore.listRunRecords()) {
|
|
406
|
+
if (record.status === 'running' && (await isRunningRecordActive(record, now))) {
|
|
407
|
+
activeRunWorkItemKeys.add(record.workItemKey);
|
|
408
|
+
}
|
|
409
|
+
}
|
|
403
410
|
for (const projection of projections) {
|
|
411
|
+
if (activeRunWorkItemKeys.has(projection.workItemKey)) {
|
|
412
|
+
continue;
|
|
413
|
+
}
|
|
404
414
|
const statusLabel = statusLabelForStage(projection.wake.stage);
|
|
405
415
|
const stageLabel = stageLabelForStage(projection.wake.stage);
|
|
406
416
|
const workflowLabel = workflowLabelForWorkflowName(workflowNameForProjection(projection, deps.config));
|
package/dist/src/version.js
CHANGED