Skip to content
This repository has been archived by the owner on Sep 12, 2024. It is now read-only.

Commit

Permalink
updated staged and staging status for relval campaigns
Browse files Browse the repository at this point in the history
  • Loading branch information
sharad1126 authored Jun 11, 2019
1 parent 201fc80 commit 215bcfd
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Unified/batchor.py
Original file line number Diff line number Diff line change
Expand Up @@ -123,7 +123,7 @@ def pick_one_site( p):
for old_campaign in CI.all(c_type='relval'):
all_in_batch = getWorkflowByCampaign(url, old_campaign, details=True)
if not all_in_batch: continue
is_batch_done = all(map(lambda s : not s in ['completed','force-complete','running-open','running-closed','acquired','assigned','assignment-approved'], [wf['RequestStatus']for wf in all_in_batch]))
is_batch_done = all(map(lambda s : not s in ['completed','force-complete','running-open','running-closed','acquired','staged','staging','assigned','assignment-approved'], [wf['RequestStatus']for wf in all_in_batch]))
## check all statuses
if is_batch_done:
#print "batch",old_campaign,"can be closed or removed if necessary"
Expand Down

0 comments on commit 215bcfd

Please sign in to comment.