From 3a35502df9ad694da13f387664ea5cb188bfdb0c Mon Sep 17 00:00:00 2001 From: Darius Couchard Date: Wed, 3 Jul 2024 14:39:50 +0200 Subject: [PATCH] Can now also restart failed started jobs by setting the restart_failed=True --- src/openeo_gfmap/manager/job_manager.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/openeo_gfmap/manager/job_manager.py b/src/openeo_gfmap/manager/job_manager.py index b8248e6..b5c20d8 100644 --- a/src/openeo_gfmap/manager/job_manager.py +++ b/src/openeo_gfmap/manager/job_manager.py @@ -164,7 +164,7 @@ def _resume_postjob_actions(self, df: pd.DataFrame): def _restart_failed_jobs(self, df: pd.DataFrame): """Sets-up failed jobs as "not_started" as they will be restarted by the manager.""" - failed_tasks = df[df.status == "error"] + failed_tasks = df[df.status.isin(["error", "start_failed"])] not_started_tasks = df[df.status == "not_started"] _log.info( f"Resetting {len(failed_tasks)} failed jobs to 'not_started'. {len(not_started_tasks)} jobs are already 'not_started'."