You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
--on-complete stop doesn't trigger when SPAWN_COMPLETE written by job started via spawn connect -- #105
When a job is launched via spawn connect <name> -- 'nohup bash /tmp/run.sh > /tmp/run.log 2>&1 &', spored does not honour --on-complete stop even after /tmp/SPAWN_COMPLETE is written by the run script.
After run.sh completes and writes /tmp/SPAWN_COMPLETE, the instances remain running indefinitely. spawn status shows them as running with no pending stop action. Manual stop required.
Expected behaviour
spored polls /tmp/SPAWN_COMPLETE (configurable via --completion-file) and triggers the --on-complete action when the file appears, regardless of how the job was started. This works when the job is started via --command at launch time — but apparently not when started later via spawn connect --.
Activity
test(agent): guard --on-complete fires regardless of job origin (#105) (