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

Add option to spawn tasks in LocalWorkflow #47

Closed
riga opened this issue Mar 26, 2018 · 2 comments
Closed

Add option to spawn tasks in LocalWorkflow #47

riga opened this issue Mar 26, 2018 · 2 comments

Comments

@riga
Copy link
Owner

riga commented Mar 26, 2018

LocalWorkflows should have the option to run tasks in a subshell instead of requiring/yielding them in the same process.

In same cases it could be also beneficial to run branch tasks with a local scheduler.

@riga riga self-assigned this Mar 26, 2018
@riga riga changed the title Add option to spawn task in LocalWorkflow Add option to spawn tasks in LocalWorkflow Mar 26, 2018
@riga
Copy link
Owner Author

riga commented Apr 11, 2018

Mh, just spawning (tons of) subprocesses in the LocalWorkflow's run() method is obviously dangerous. This mechanism should take --workers into account. Sounds ugly.

@riga
Copy link
Owner Author

riga commented Jun 6, 2018

The implementation might get really dirty. Closing for now.
To force tasks to be run in a new subprocess, one can also use the force_multiprocessing config (spotify/luigi#2401).

@riga riga closed this as completed Jun 6, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant