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

luigi.worker.Worker(retry_external_tasks=True) has no effect #2077

Merged
merged 1 commit into from
Apr 5, 2017

Conversation

kalvdans
Copy link
Contributor

Description

Use the retry_external_tasks parameter local to the worker instead of the global settings.

Motivation and Context

The change is required when starting a worker from Python. It is not needed when starting a worker using the luigi binary.

Have you tested this? If so, how?

I have included unit tests. The test don't run to completion without the change to the code.

@mention-bot
Copy link

@kalvdans, thanks for your PR! By analyzing the history of the files in this pull request, we identified @daveFNbuck, @erikbern and @Tarrasch to be potential reviewers.

Copy link
Contributor

@Tarrasch Tarrasch left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Nice catch!

"""
Test ExternalTask without altering global settings.
"""
assert luigi.worker.worker().retry_external_tasks is False
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Awesome assertion 😎

@Tarrasch Tarrasch merged commit 9daa1df into spotify:master Apr 5, 2017
@Tarrasch
Copy link
Contributor

Tarrasch commented Apr 5, 2017

Thanks! :)

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.

3 participants