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

Empty .map pipeline never completes #18

Open
fubuloubu opened this issue Oct 24, 2024 · 1 comment
Open

Empty .map pipeline never completes #18

fubuloubu opened this issue Oct 24, 2024 · 1 comment

Comments

@fubuloubu
Copy link

I have a pipeline task that's like Pipeline(broker, produces_array).map(another_task) but it never completes when I want using task.wait_result if produces_array returns an empty list

@fubuloubu
Copy link
Author

I think if you just bail here when len is 0, it would work:

raise AbortPipeline("Result of the previous task is not iterable.")
for item in return_value:

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

No branches or pull requests

1 participant