Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[enhancement] job_timeout in batch jobs #3145

Closed
MorphBonehunter opened this issue Aug 31, 2017 · 6 comments
Closed

[enhancement] job_timeout in batch jobs #3145

MorphBonehunter opened this issue Aug 31, 2017 · 6 comments

Comments

@MorphBonehunter
Copy link

It would be a good extension for the batch job system to define an max running time for the job.
For example if i define an periodic job which runs */15 i would like to have the ability to define an job_timeout (with no default) of "5m" after which the job gets killed and marked failed.
This prevents "hanging" scripts and in case of prohibit_overlap that the job isn't executed on the next schedule.

@jippi
Copy link
Contributor

jippi commented Aug 31, 2017

As mentioned in Gitter chat, the timeout binary in coreutils can do this inside the container if you need a fix right now.

timeout 5 /path/to/slow/command with options

@MorphBonehunter
Copy link
Author

@jippi thanks for your suggestion ( i doesn't realize in gitter because the mention is to someone else 😄 ) and i will check this.
However i think this could be an usefull addition to nomad, so i've decide to open this issue.

@jippi
Copy link
Contributor

jippi commented Aug 31, 2017

I agree having it native to Nomad would be nice :)

@dadgar
Copy link
Contributor

dadgar commented Aug 31, 2017

Hey closing this as a duplicate of #1782

@dadgar dadgar closed this as completed Aug 31, 2017
@MorphBonehunter
Copy link
Author

sorry again, another issue i could not find that there is already an open one 😱

@github-actions
Copy link

github-actions bot commented Dec 8, 2022

I'm going to lock this issue because it has been closed for 120 days ⏳. This helps our maintainers find and focus on the active issues.
If you have found a problem that seems similar to this, please open a new issue and complete the issue template so we can capture all the details necessary to investigate further.

@github-actions github-actions bot locked as resolved and limited conversation to collaborators Dec 8, 2022
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants