Files
box/jobs/archive/auto-work-queue-f10.json
T

24 lines
1.4 KiB
JSON

{
"name": "auto-work-queue-f10",
"description": "Auto work-queue scavenger (builder 6/10): poll job-list, find manual/pending/stale jobs, check status, nudge/claim, keep chain moving",
"agent": "pip",
"schedule": "manual",
"timeout": 600,
"prompt_template": "Auto work-queue scavenger sweep. Time: {datetime}. Job ID: {job_id}.\n\n1. Run `box job-list` and find jobs with schedule \"manual\" or that look stale/pending/unclaimed.\n2. For each candidate run `box job-status <name>` to check dispatch/result/chain state.\n3. If a job is unclaimed or stuck pending, claim it: work it yourself if quick, otherwise nudge the owning agent with `box notify <agent> <message>`.\n4. If a job failed, run `box job-next <job-id>` and keep the chain moving (box->agent->box).\n5. Keep your reply short and end with a one-line summary of what you found and did, starting with OK or FAIL.",
"sidechat": {
"create": true,
"reuse_key": "auto-work-queue-f10",
"name_template": "auto-work-queue-f10-{date}"
},
"followup": {
"expect_reply": true,
"timeout": "30m",
"nudges": 1,
"escalate": "opm",
"route": "work-queue"
},
"chain_next": null,
"on_failure": "alert",
"note": "Dispatched by systemd job-auto-work-queue-f10.timer (OnCalendar=*:27). schedule=manual so job-scheduler.py skips it; prevents double-fire (systemd :27 + scheduler :30). Changed 2026-10-05 by operator-main per 646 DM 2112a7fe."
}