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

Delete pod if it already exists before attempting to start it again #22

Merged
merged 3 commits into from
Feb 18, 2017

Conversation

yuvipanda
Copy link
Collaborator

This will kill old pods that JupyterHub has lost track of or haven't started in time, and kill them before attempting to start a new pod.

We now only pay for extra API calls when we do encounter
failures, not on every start
@yuvipanda
Copy link
Collaborator Author

Tested locally, seems to work!

I tested this by creating a bogus pod that has a name that JupyterHub will want to use, but is stuck in a non-running state (easiest way is to use a false image name, which gets it stuck in ErrImagePull). Then try starting the pod - it should kill the bogus existing pod and start a new one.

@yuvipanda yuvipanda merged commit b81c00a into master Feb 18, 2017
@yuvipanda yuvipanda deleted the delete-pods-if-exist branch March 5, 2017 09:09
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant