Skip to content
This repository has been archived by the owner on Jul 11, 2019. It is now read-only.

parallel does not complete and exit its own process #75

Open
omac777 opened this issue Dec 6, 2018 · 1 comment
Open

parallel does not complete and exit its own process #75

omac777 opened this issue Dec 6, 2018 · 1 comment

Comments

@omac777
Copy link

omac777 commented Dec 6, 2018

Scenario: We launch two different tasks in parallel. Let's say two bash scripts. One sleeps and echos that is done. The other sleeps and doesn't echo and simply exits.

If the entire bash script does not send any output to console or error and exits, it may not be perceived as completed.

My hunch

The wrong exit code or wrong signal is sent and parallel doesn't capture that signal and never perceives that bash script as completed. As a result all of the parallel did not complete and did not exit its own process.

OR

The empty output or empty error never gets closed because it never got used. The buffer that was reading the output console or error console output never closed or exited so it never perceived that thread to be completed either and hung on reading an empty file expecting to read something. As a result all of the parallel did not complete and did not exit its own process.

@mmstick
Copy link
Owner

mmstick commented Dec 6, 2018

For now, it's best to stick with GNU Parallel, as this is no longer maintained. One day this will get rewritten with tokio and futures and replaced.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants