Skip to content

Commit

Permalink
Tweaks and addition of starting to SpectrumFluxAdapter. (#119)
Browse files Browse the repository at this point in the history
  • Loading branch information
FrankD412 committed Jul 23, 2018
1 parent a08cf6e commit 6fbe0b1
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions maestrowf/interfaces/script/fluxscriptadapter.py
Original file line number Diff line number Diff line change
Expand Up @@ -401,10 +401,11 @@ def _state(self, flux_state):
LOGGER.debug("Received FLUX State -- %s", flux_state)
if flux_state == "running":
return State.RUNNING
elif flux_state == "pending" or flux_state == "runrequest":
return State.PENDING
elif flux_state == "submitted" or flux_state == "allocated":
elif flux_state == "pending" or flux_state == "runrequest" \
or flux_state == "allocated" or flux_state == "starting":
return State.PENDING
elif flux_state == "submitted":
return State.WAITING
elif flux_state == "failed":
return State.FAILED
elif flux_state == "cancelled" or flux_state == "killed":
Expand Down

0 comments on commit 6fbe0b1

Please sign in to comment.