@proagentstore/cli 0.4.10 → 0.4.11
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.
|
@@ -44,6 +44,14 @@ export class RunnerStore {
|
|
|
44
44
|
const now = new Date().toISOString();
|
|
45
45
|
let expired = 0;
|
|
46
46
|
for (const task of data.tasks) {
|
|
47
|
+
// Job-application tasks are driven by a DURABLE Cloudflare Workflow, not this
|
|
48
|
+
// runner process — they survive a runner restart (relay reconnect / crash) and
|
|
49
|
+
// the workflow owns their lifecycle. Expiring them here would flip a LIVE apply
|
|
50
|
+
// to "failed", which re-mirrors to the board, resurrects the Retry button, and
|
|
51
|
+
// slips past the API single-flight guard → a second concurrent apply on the one
|
|
52
|
+
// browser page. Mirrors the API carve-out in expireOrphanedRuntimeTasks.
|
|
53
|
+
if (task.type === "job.apply_agent")
|
|
54
|
+
continue;
|
|
47
55
|
if (task.status === "needs_human" || task.status === "running") {
|
|
48
56
|
task.status = "failed";
|
|
49
57
|
task.error =
|