Skip to content

Commit

Permalink
fix batchsys iteration
Browse files Browse the repository at this point in the history
  • Loading branch information
dsschult committed Oct 1, 2024
1 parent edb4686 commit d0075b9
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions iceprod/server/plugins/condor.py
Original file line number Diff line number Diff line change
Expand Up @@ -295,7 +295,7 @@ async def submit(self, tasks: list[Task], jel: Path):
"""

for k,v in tasks[0].get_task_config()['batchsys'].get('condor', {}):
for k,v in tasks[0].get_task_config()['batchsys'].get('condor', {}).items():
if k.lower() != 'requirements':
submitfile += f'+{k} = {v}\n'

Expand All @@ -319,7 +319,7 @@ async def submit(self, tasks: list[Task], jel: Path):
ads.update(self.condor_resource_reqs(task))

reqs2 = reqs
for k,v in tasks[0].get_task_config()['batchsys'].get('condor', {}):
for k,v in tasks[0].get_task_config()['batchsys'].get('condor', {}).items():
if k.lower() == 'requirements':
reqs2 = f'({reqs}) && ({v})' if reqs else v
break
Expand Down

0 comments on commit d0075b9

Please sign in to comment.