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

Fix error message in case of unfulfilled dependencies with single output #3281

Conversation

GianlucaFicarelli
Copy link
Contributor

Description

Use flatten() to handle the outputs of any unfulfilled dependencies when a TaskProcess is run.

Motivation and Context

When a Task is run, and one of the dependencies is not fulfilled, and this dependency has a single Target as output (instead of a list of targets, or a dict of targets), then Luigi fails and prints the wrong error TypeError: 'RemoteTarget' object is not iterable.

See #3280

Have you tested this? If so, how?

Included unit test for TaskProcess.run()

@winniehell
Copy link

@andresgomezfrr can you please take a look at this?

@andresgomezfrr andresgomezfrr merged commit 64d6c48 into spotify:master Apr 5, 2024
45 checks passed
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