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

Pause and unpause the scheduler from the viz #2145

Merged
merged 1 commit into from
Jun 6, 2017

Conversation

daveFNbuck
Copy link
Contributor

Description

Add a pause button to the scheduler that stops get_work from returning jobs. The button lives at the right-hand side of the header and looks like this:

image

When the scheduler is paused, it looks like this:

image

Pausing will eventually kill any workers that don't have keep-alive set.

Motivation and Context

Sometimes it can be necessary to stop all jobs. This usually happens when you're having a pipeline issue or you want to deploy a new scheduler. There hasn't been a nice way to accomplish this. This commit adds a pause toggle to the visualiser header bar. With one click, the scheduler will stop giving out new tasks and allow currently running tasks to finish normally. With another click, the scheduler starts giving out jobs again.

Have you tested this? If so, how?

I've been using this in production for about half a year now. I also tested the visualiser from this PR locally and there are unit tests for the scheduler side.

Sometimes it can be necessary to stop all jobs. This usually happens
when you're having a pipeline issue or you want to deploy a new
scheduler. There hasn't been a nice way to accomplish this. This commit
adds a pause toggle to the visualiser header bar. With one click, the
scheduler will stop giving out new tasks and allow currently running
tasks to finish normally. With another click, the scheduler starts
giving out jobs again.

Pausing will eventually kill any workers that don't have keep-alive set.
@Tarrasch Tarrasch merged commit 37a580f into spotify:master Jun 6, 2017
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.

2 participants