Re: How do I make a pipeline not hang when an agent dies?

2024-03-04 Thread Ansis Māliņš
I'm calling PowerShell scripts, and looking at the source of durable-task-plugin, it looks like PowershellScript, unlike BourneShellScript, does not implement any heartbeat monitoring. Am I reading it right? On Mon, Mar 4, 2024 at 2:36 PM Viacheslav Dubrovskyi wrote: > Hi, > > You can use try {

Re: How do I make a pipeline not hang when an agent dies?

2024-03-04 Thread Viacheslav Dubrovskyi
Hi, You can use try { ... } catch (error) { ... } and set minimal timeout -Dorg.jenkinsci.plugins.durabletask.BourneShellScript.HEARTBEAT_CHECK_INTERVAL=60 (more details in https://issues.jenkins.io/browse/JENKINS-48300) 04.03.24 07:12, Ansis Māliņš: Currently, when an agent dies in the