From 5d96167fbc538d5eea77a913a04159fb8d98aeb2 Mon Sep 17 00:00:00 2001 From: Jusong Yu Date: Mon, 22 Jul 2024 11:08:12 +0200 Subject: [PATCH] Cast job_id to str to conform with type of _jobs_cache fixes #6542 --- src/aiida/engine/processes/calcjobs/manager.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/aiida/engine/processes/calcjobs/manager.py b/src/aiida/engine/processes/calcjobs/manager.py index 75b9bb6ab1..700f166826 100644 --- a/src/aiida/engine/processes/calcjobs/manager.py +++ b/src/aiida/engine/processes/calcjobs/manager.py @@ -114,7 +114,7 @@ async def _get_jobs_from_scheduler(self) -> Dict[Hashable, 'JobInfo']: self.logger.info(f'AuthInfo<{self._authinfo.pk}>: successfully retrieved status of active jobs') for job_id, job_info in scheduler_response.items(): - jobs_cache[job_id] = job_info + jobs_cache[str(job_id)] = job_info return jobs_cache