Skip to content

Commit

Permalink
Translate waiting workflow state to running
Browse files Browse the repository at this point in the history
  • Loading branch information
edan-bainglass committed Jan 13, 2025
1 parent 65243e4 commit 58afcbb
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/aiidalab_qe/common/panel.py
Original file line number Diff line number Diff line change
Expand Up @@ -515,7 +515,6 @@ class ResultsModel(PanelModel, HasProcess):
"excepted": "danger",
"killed": "danger",
"queued": "warning",
"waiting": "info",
"running": "info",
"created": "info",
}
Expand Down Expand Up @@ -556,6 +555,8 @@ def fetch_child_process_node(self, which="this") -> orm.ProcessNode | None:

def _get_child_process_status(self, which="this"):
state, exit_message = self._get_child_state_and_exit_message(which)
if state == "waiting":
state = "running"
status = state.upper()
if exit_message:
status = f"{status} ({exit_message})"
Expand Down

0 comments on commit 58afcbb

Please sign in to comment.