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

DirectScheduler: Add ? as JobState.UNDETERMINED #6040

Merged
merged 1 commit into from
May 29, 2023
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 5 additions & 0 deletions aiida/schedulers/plugins/direct.py
Original file line number Diff line number Diff line change
Expand Up @@ -55,6 +55,11 @@
'W': JobState.RUNNING,
'X': JobState.DONE,
'Z': JobState.DONE,
'?': JobState.UNDETERMINED,
mbercx marked this conversation as resolved.
Show resolved Hide resolved
# `ps` can sometimes return `?` for the state of a process on macOS. This corresponds to an "unknown" state, see:
#
# https://apple.stackexchange.com/q/460394/497071
#
# Not sure about these three, I comment them out (they used to be in
# here, but they don't appear neither on ubuntu nor on Mac)
# 'F': JobState.DONE,
Expand Down