23 lines
1.2 KiB
JSON
23 lines
1.2 KiB
JSON
|
|
{
|
||
|
|
"name": "auto-work-queue-f18",
|
||
|
|
"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": "51 * * * *",
|
||
|
|
"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-f18",
|
||
|
|
"name_template": "auto-work-queue-f18-{date}"
|
||
|
|
},
|
||
|
|
"followup": {
|
||
|
|
"expect_reply": true,
|
||
|
|
"timeout": "30m",
|
||
|
|
"nudges": 1,
|
||
|
|
"escalate": "opm",
|
||
|
|
"route": "work-queue"
|
||
|
|
},
|
||
|
|
"chain_next": null,
|
||
|
|
"on_failure": "alert"
|
||
|
|
}
|