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

Commit de3dbe4

Browse files
committed
allow to assign to all sites per SE
1 parent 6708f51 commit de3dbe4

1 file changed

Lines changed: 9 additions & 3 deletions

File tree

Unified/actor.py

Lines changed: 9 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -567,15 +567,21 @@ def actor(url,options=None):
567567
for action in actions:
568568
if action.startswith('sites'):
569569
if type(actions[action]) != list:
570-
assign_to_sites=[SI.SE_to_CE(actions[action])]
570+
assign_to_sites=SI.SE_to_CEs(actions[action])
571571
else:
572-
assign_to_sites=list(set([SI.SE_to_CE(site) for site in actions[action]]))
572+
assign_to_sites=[]
573+
for site in actions[action]:
574+
assign_to_sites.extend( SI.SE_to_CEs(site))
575+
assign_to_sites=sorted(set(assign_to_sites))
573576
# if action.startswith('mem') and actions[action] != "" and actions[action] != 'Same' and wfi.request['RequestType'] in ['TaskChain']:
574577
# recover = False;
575578
# print "Skipping %s for now until Allie fixes memory parameter for TaskChain ACDCs."%wfname
576579
# wfi.sendLog('actor',"Skipping %s for now until Allie fixes memory parameter for TaskChain ACDCs."%wfname)
577580
if not 'sites' in actions:
578-
assign_to_sites = list(set([SI.SE_to_CE(site) for site in where_to_run[fulltaskname]]))
581+
assign_to_sites=[]
582+
for site in where_to_run[task]:
583+
assign_to_sites.extend( SI.SE_to_CEs(site))
584+
assign_to_sites=sorted(set(assign_to_sites))
579585
print "Found",sorted(assign_to_sites),"as sites where to run the ACDC at, from the acdc doc of ",wfname
580586
print "Going to run at",sorted(assign_to_sites)
581587
if recover:

0 commit comments

Comments
 (0)