Open mochja opened 1 year ago
This issue is stale because it has been open 365 days with no activity. Remove stale label or comment or this will be closed in 15 days.
Is it possible to enforce this hook for runner shutdown?
It would be great if this could be supported, as this would allow adding annotations to the job to help the user understand the cause of shutdown. Also for cleaning up if needed.
Describe the bug
Seems that Runner skips the
Complete Runner
step when the SystemD service is stopped during job processing. This behaviour is different from when user cancels the workflow using GitHub UI.To Reproduce Steps to reproduce the behavior:
ACTIONS_RUNNER_HOOK_JOB_COMPLETED
./svc.sh uninstall
while job is being processed by the runnerComplete Runner
step was skipped in the Workflow RunExpected behavior The
Complete Runner
step is part of shutdown procedure same asComplete Job
step.Runner Version and Platform
Version of your runner? v2.304.0
OS of the machine running the runner? Linux
What's not working?
Result when stopping the system service:
Result when User cancels via GitHub UI:
In both cases the step results with the same error: