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

Service jobs should support the ability to be restarted after a failure #134

Closed
kelseyhightower opened this issue Sep 28, 2015 · 5 comments

Comments

@kelseyhightower
Copy link

While testing the example redis job, I stopped the agent and the job was marked dead. When I restarted the agent, the job did not get rescheduled. This maybe by design, but it was unexpected, and I assumed since the job was a service nomad would just reschedule the job to an health node.

@armon
Copy link
Member

armon commented Sep 28, 2015

@kelseyhightower That is odd, it should have done that automatically... Was there another healthy client available at the time of failure?

@kelseyhightower
Copy link
Author

No, which has me thinking that the scheduler attempts to make a decision and fails the job when there are no other healthy nodes. I was expecting the job to be retried until success.

@armon
Copy link
Member

armon commented Sep 28, 2015

@kelseyhightower Yeah, there is no good story for retrying a job when the scheduler fails in 0.1. We probably need to create a "retry" evaluation in a wait state.

@dadgar
Copy link
Contributor

dadgar commented Nov 11, 2015

PR #393 fixes this.

@dadgar dadgar closed this as completed Nov 11, 2015
schmichael added a commit that referenced this issue Jan 30, 2020
benbuzbee pushed a commit to benbuzbee/nomad that referenced this issue Jul 21, 2022
Fixes races with Raft configurations member, adds GetConfiguration accessor.
@github-actions
Copy link

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 29, 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