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 <dub...@gmail.com> wrote: > 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 middle of building something, the > pipeline job in Jenkins hangs forever. How do I make Jenkins fail or abort > the job instead? Please do not suggest setting a timeout. > > When the hang happens the last message in the log is > Cannot contact oceansong: java.lang.InterruptedException > or > Cannot contact oceansong: hudson.remoting.RequestAbortedException: > java.nio.channels.ClosedChannelException > > Jenkins version is Jenkins 2.440.1 > -- > You received this message because you are subscribed to the Google Groups > "Jenkins Users" group. > To unsubscribe from this group and stop receiving emails from it, send an > email to jenkinsci-users+unsubscr...@googlegroups.com. > To view this discussion on the web visit > https://groups.google.com/d/msgid/jenkinsci-users/ca452f42-a69a-4339-a78d-834663f6a455n%40googlegroups.com > <https://groups.google.com/d/msgid/jenkinsci-users/ca452f42-a69a-4339-a78d-834663f6a455n%40googlegroups.com?utm_medium=email&utm_source=footer> > . > > -- > WBR, > Viacheslav Dubrovskyi > > -- > You received this message because you are subscribed to a topic in the > Google Groups "Jenkins Users" group. > To unsubscribe from this topic, visit > https://groups.google.com/d/topic/jenkinsci-users/Yy1shenBIVI/unsubscribe. > To unsubscribe from this group and all its topics, send an email to > jenkinsci-users+unsubscr...@googlegroups.com. > To view this discussion on the web visit > https://groups.google.com/d/msgid/jenkinsci-users/50c7c88f-3675-4e6c-bdd6-07ae9d16939f%40gmail.com > <https://groups.google.com/d/msgid/jenkinsci-users/50c7c88f-3675-4e6c-bdd6-07ae9d16939f%40gmail.com?utm_medium=email&utm_source=footer> > . > -- You received this message because you are subscribed to the Google Groups "Jenkins Users" group. To unsubscribe from this group and stop receiving emails from it, send an email to jenkinsci-users+unsubscr...@googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/jenkinsci-users/CAKFqKXM04YthihWp5QT4RLZSJ7qiVe6209qGkE1qBebwAcCsOw%40mail.gmail.com.