Skip to content

Commit

Permalink
rare
Browse files Browse the repository at this point in the history
  • Loading branch information
mlin committed Mar 8, 2021
1 parent ffaf86a commit e244654
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion WDL/runtime/task_container.py
Original file line number Diff line number Diff line change
Expand Up @@ -828,7 +828,7 @@ def poll_service(
loginfo["task"] = tasks[0]["ID"][:10]
if "NodeID" in tasks[0]:
loginfo["node"] = tasks[0]["NodeID"][:10]
if status["DesiredState"] != state:
if "DesiredState" in status and status["DesiredState"] != state:
loginfo["desired"] = status["DesiredState"]
logmsg = status.get("Err", status.get("Message", None))
if logmsg and logmsg != state:
Expand Down

0 comments on commit e244654

Please sign in to comment.