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

[feature] job lifetime limit #3594

Closed
alxark opened this issue Nov 28, 2017 · 6 comments
Closed

[feature] job lifetime limit #3594

alxark opened this issue Nov 28, 2017 · 6 comments

Comments

@alxark
Copy link

alxark commented Nov 28, 2017

Hello. I would like to specify job lifetime limit. This feature will be useful for testing environments, when i don't want to track started jobs after successful merge and want them to die after some timeout ( for example 1 week after last modification time). Currently i would like to use this feature with KVM driver to create fresh VM's with small nomad cluster inside it.

@chelseakomlo
Copy link
Contributor

Hi, thanks for the feature request. Have you looked at the kill_timeout specification? See here for docs: https://www.nomadproject.io/docs/operating-a-job/update-strategies/handling-signals.html

@alxark
Copy link
Author

alxark commented Nov 28, 2017

It's not the same. kill_timeout is used to stop tasks, but i think there should be job lifetime. After specified lifetime this job should be stopped and cleared from cluster.

@shantanugadgil
Copy link
Contributor

HI @alxark
I think what you are looking for is a "wall time" limit for a job. (Probably similar to classic HPC schedulers).

There have been some issues opened in the past discussing those, though I don't remember the issue numbers off hand.

HTH,
Shantanu

@alxark
Copy link
Author

alxark commented Dec 10, 2017

It would be great if someone can post links here, because i didn't found them.

@schmichael
Copy link
Member

@alxark Sorry about that. I think this is the original one to follow for updates: #1782

Closing this one as a duplicate.

@github-actions
Copy link

github-actions bot commented Dec 5, 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 5, 2022
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

4 participants