From eaec873e9d6d7d062832eb3d1cd2568c4a1fc018 Mon Sep 17 00:00:00 2001 From: jluethi Date: Mon, 4 Aug 2025 16:47:14 +0200 Subject: [PATCH 1/2] Catch FileNotFoundError in Apply registration task --- fractal_tasks_core/tasks/apply_registration_to_image.py | 1 + 1 file changed, 1 insertion(+) diff --git a/fractal_tasks_core/tasks/apply_registration_to_image.py b/fractal_tasks_core/tasks/apply_registration_to_image.py index 179a731af..1e6831e8d 100644 --- a/fractal_tasks_core/tasks/apply_registration_to_image.py +++ b/fractal_tasks_core/tasks/apply_registration_to_image.py @@ -218,6 +218,7 @@ def apply_registration_to_image( except ( zarr.errors.GroupNotFoundError, zarr.errors.PathNotFoundError, + FileNotFoundError, ): logger.debug( f"Table {table} not found in attempt {current_round}. " From 2a6317f59ee30e5ef393f2daa21691fded842c95 Mon Sep 17 00:00:00 2001 From: jluethi Date: Mon, 4 Aug 2025 16:48:50 +0200 Subject: [PATCH 2/2] Update changelog --- CHANGELOG.md | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/CHANGELOG.md b/CHANGELOG.md index db1b0850b..fdec9aaea 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,5 +1,9 @@ **Note**: Numbers like (\#123) point to closed Pull Requests on the fractal-tasks-core repository. +# Unreleased +* Tasks: + * Catch `FileNotFoundError` in `apply_registration_to_image` task when race conditions with the reference cycle are hit (\#971). + # 1.5.4 * Dependencies: * Pin `lxml` to `<=5.4.0` (\#963).