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

Taskrunner intermediate progress #3376

Merged
merged 6 commits into from
Apr 19, 2024
Merged

Taskrunner intermediate progress #3376

merged 6 commits into from
Apr 19, 2024

Conversation

kbirk
Copy link
Contributor

@kbirk kbirk commented Apr 18, 2024

This adds a new progress pipe to be written to and forwards the output from the process, to the taskrunner, to the hmi-server

Copy link
Member

@mwdchang mwdchang left a 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.

@kbirk kbirk merged commit 2695aca into main Apr 19, 2024
3 checks passed
@kbirk kbirk deleted the kbirk/task-progress branch April 19, 2024 15:44
final Process progressPipe = new ProcessBuilder("mkfifo", progressPipeName).start();
exitCode = progressPipe.waitFor();
if (exitCode != 0) {
throw new RuntimeException("Error creating input pipe");
Copy link
Member

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.

Comment on lines +268 to +270
} catch (final Exception e) {
// do nothing
}
Copy link
Member

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?

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 this pull request may close these issues.

3 participants