fix(dispatch): idle runners shut down — no task dir after 10 min, hard cap 75 min
Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01PWvSpst5uUEnzviMEBZX9D
This commit is contained in:
1 parent
125b265e80
commit
9dbf071934
1 file changed
+5
@@ -206,6 +206,11 @@ RUNCFG
|
|||||||
|
|
||||||
mkdir -p /opt/runner/work
|
mkdir -p /opt/runner/work
|
||||||
|
|
||||||
|
# Idle guard: a runner whose job was cancelled or taken by another runner never gets one; it must not
|
||||||
|
# sit billing. No task dir after 10 min = shut down. Hard cap 75 min whatever happens.
|
||||||
|
shutdown -h +75 || true
|
||||||
|
( sleep 600; [ -z "$(ls -A /opt/runner/work 2>/dev/null)" ] && shutdown -h now ) &
|
||||||
|
|
||||||
# Run — blocks until the job completes, then exits (ephemeral = one job only)
|
# Run — blocks until the job completes, then exits (ephemeral = one job only)
|
||||||
act_runner daemon --config .runner.yaml
|
act_runner daemon --config .runner.yaml
|
||||||
|
|
||||||
|
|||||||
Reference in new issue
Block a user