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

Parallel execution of commands #41

Open
marcosh opened this issue May 22, 2020 · 2 comments · May be fixed by #42
Open

Parallel execution of commands #41

marcosh opened this issue May 22, 2020 · 2 comments · May be fixed by #42

Comments

@marcosh
Copy link

marcosh commented May 22, 2020

If I understand correctly, currently it is possible to execute commands just one after the other.

Would it be interesting/possible to configure certain commands to run in parallel?

For example, I could have four commands a, b, c and d and I would like to run a, then b and c in parallel and only after they both complete, run d

@schell
Copy link
Owner

schell commented May 22, 2020

That's an interesting proposition. I'm not sure what it would look like to issue a command like that - what do you suggest the semantics to be?

Also - I'm pretty tight on time these days so I probably will not be able to get to this in a timely manner, but I'll still be available for PR reviews and hackage administration.

@marcosh
Copy link
Author

marcosh commented May 22, 2020

this might be something I'd be interested to work in, so I could try to set up a PR.

I imagine parallel commands could work in two ways:

  • their output is intertwined, which could make them hard to read
  • only the output of the first is shown in real time, and only after it finishes the output of the others is returned

I would probably opt for the second option, but maybe it could be configurable

@marcosh marcosh linked a pull request May 28, 2020 that will close this issue
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 a pull request may close this issue.

2 participants