For short lived batch jobs that should run periodically (using the periodic stanza) is there a way to limit the job execution time directly in Nomad?
Consider the following in bash: while :; do timelimit ./script-that-should-not-take-longer-than-an-hour.sh ; sleep 5m ; done
. Timelimit will kill the script if it got stuck and then retries after 5 minutes.
The job is running in docker, so I could wrap the Docker entrypoint in a shellscript using timelimit
but a Nomad-native solution is prefered.