-
Notifications
You must be signed in to change notification settings - Fork 2
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
Taskrunner intermediate progress #3376
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Didn't test, code looks fine.
final Process progressPipe = new ProcessBuilder("mkfifo", progressPipeName).start(); | ||
exitCode = progressPipe.waitFor(); | ||
if (exitCode != 0) { | ||
throw new RuntimeException("Error creating input pipe"); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Should be Error creating progress pipe
here.
} catch (final Exception e) { | ||
// do nothing | ||
} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Why doing a catch if we do nothing? To not stop the thread?
This adds a new progress pipe to be written to and forwards the output from the process, to the taskrunner, to the hmi-server