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

Fails batch_running tasks if worker dies early #1850

Merged
merged 1 commit into from
Sep 12, 2016

Conversation

daveFNbuck
Copy link
Contributor

Description

Compares task.status to both BATCH_RUNNING and RUNNING in fail_dead_worker_task instead of just to RUNNING.

Motivation and Context

If a worker were to die between receiving batch tasks and responding with the task that will run them, we want the tasks to fail. Our existing methods to fail batch tasks don't work in this case, so I've extended the method for failing RUNNING tasks to also work for BATCH_RUNNING in order to handle this extra case.

Have you tested this? If so, how?

I have included tests.

If a worker were to die between receiving batch tasks and responding with
the task that will run them, we want the tasks to fail. Our existing
methods to fail batch tasks don't work in this case, so I've extended the
method for failing RUNNING tasks to also work for BATCH_RUNNING in order
to handle this extra case.
@Tarrasch Tarrasch merged commit 5a9cc05 into spotify:master Sep 12, 2016
@Tarrasch
Copy link
Contributor

Ah, thanks for fixing this. :)

@daveFNbuck daveFNbuck deleted the fail_dead_batch_tasks_without_runner branch September 12, 2016 17:09
This was referenced Jun 29, 2022
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