-
Notifications
You must be signed in to change notification settings - Fork 18
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
NodesTreeWidget: Red icon for failed processes #336
Conversation
I let @csadorf review it, as he mainly contributed to this part of the code. |
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.
Generally no objections, but it seems a bit odd that we need to special case this. Do you know what the value of process_node.process_state
is in case that the process_node.is_failed
condition is True?
It is unfortunate, but the ProcessState is FINISHED in this case so there's no way to distinguish this condition based on this. Note that also the method 'is_finished' returns true if the process finished with non-zero exit status. 'is_finished_ok' method is used to really check whether there where no issues. I am pretty sure I saw some bugs related to this in the aiidalab-qe app as well, wil laubmit PRs when I get to it. |
Co-authored-by: Carl Simon Adorf <carl.simon.adorf@gmail.com>
for more information, see https://pre-commit.ci
@danielhollas Sorry, looks like I introduced a bug with my suggestion: https://results.pre-commit.ci/run/github/135423835/1659623008.H_oLFNBBSs-SpAAAzru51A |
@csadorf thanks, I've fixed the code and tested locally so this should be good to go. |
@danielhollas Thanks a lot! |
This has bugged me for a while. We were displaying green icon for processes that finished but had non-zero exit status.
BEFORE:
![obrazek](https://user-images.githubusercontent.com/9539441/182042947-6a5de60e-10ea-458d-b770-f49374742b62.png)
AFTER:
![obrazek](https://user-images.githubusercontent.com/9539441/182042976-5b403786-8886-410b-93dd-eb2fb5002997.png)