diff --git a/iceprod/server/plugins/condor.py b/iceprod/server/plugins/condor.py index f03e1369..f687f5d2 100644 --- a/iceprod/server/plugins/condor.py +++ b/iceprod/server/plugins/condor.py @@ -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' @@ -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