-
New Feature
-
Resolution: Duplicate
-
Minor
-
None
I would like to edit the event executed when timeout is reach.
In some scenario, the event "Send interrupt signal to process" won't kill the running process. If I could catch some event, I could force the process to stop and for instance rollback environment.
timeout(5, unit:'MINUTES') { // 10 minutes process } catch { // specific timeout signal }
- duplicates
-
JENKINS-38769 Pipeline job hangs when agent loses network connectivity
-
- Resolved
-
-
JENKINS-25623 timeout step should be able to kill infinite loop
-
- Resolved
-
-
JENKINS-39072 timeout step should include more logging/diagnostics information
-
- Resolved
-
- is related to
-
JENKINS-35677 build-timeout-plugin cannot be used with pipelines (workflows)
-
- Resolved
-
-
JENKINS-32986 hard killing a pipeline leaves the JVM CPS thread running.
-
- Open
-
I would argue that this is more the point: if DurableTaskStep.Execution.stop does not actually result in termination after some reasonable amount of time, perhaps SIGKILL should be sent and the step exit.
Additionally/alternately, perhaps timeout should give its body a grace period to exit cleanly, after which running steps and/or CPS-transformed Groovy code and/or native code should be terminated, à la WorkflowRun.doTerm. Cf. JENKINS-32986.