Skip to content

Commit

Permalink
Fix logic that is off by one.
Browse files Browse the repository at this point in the history
  • Loading branch information
matz-e committed Jan 30, 2018
1 parent 19cae61 commit 102aa28
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/python/CRABClient/Commands/status.py
Original file line number Diff line number Diff line change
Expand Up @@ -274,7 +274,7 @@ def check_queued(status):
if len(subDagInfos) > 1:
states = [cls.translateStatus(subDagInfos[k]['DagStatus'], dbstatus) for k in subDagInfos if k > 0]
for status in status_order:
if states.count(status) > 1:
if states.count(status) > 0:
return check_queued(status)
# If no tails are active, return the status of the processing DAG.
if len(subDagInfos) > 0:
Expand Down

0 comments on commit 102aa28

Please sign in to comment.