Long Running Jobs Alert

112 views
Skip to first unread message

vaz ra

unread,
Feb 23, 2015, 5:22:31 PM2/23/15
to rundeck...@googlegroups.com
Just got into rundeck and it is amazing. 

Question though, one our requirements is to alert (email) if a job has been running for a configured amount (per job) but not kill it. Looks like the built in options is to kill it at the time out. To get this functionality I had a few thoughts.

1) have a step1 local job that will just time till xyz and if its not killed send an alert at the time (after the step2 job ended the timer would be killed)
2) highjack the Timeout code in rundeck to send an alert instead of killing the job
3) some way better idea you guys have.

Thanks for your ideas and help!

Jared Quick

unread,
Feb 24, 2015, 10:52:38 AM2/24/15
to rundeck...@googlegroups.com
I decided on this for now:

Create an option on the jobs called "long-running-alert". Insert the hours into the option as a int. (the job wont actually use this, its just a place to store the config)

Then have another job that runs every hour, uses the API and just loops over the executing jobs. The ones that have the "long-running-alert" option will be analyzed and if its been running pasted the allotted time an email will be sent.
Reply all
Reply to author
Forward
0 new messages