From f1e5b7c4c4bd97822cce92dbc77dc4fd05780a1f Mon Sep 17 00:00:00 2001 From: xq840622 Date: Mon, 4 Dec 2023 11:42:31 +0800 Subject: [PATCH] Update schedule_utils.py If a return statement is included within the finally block, it will prematurely terminate the function, causing the Exception not to be caught. Signed-off-by: xq840622 --- python/fate_flow/utils/schedule_utils.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/python/fate_flow/utils/schedule_utils.py b/python/fate_flow/utils/schedule_utils.py index 3bef373ec..324f4ebae 100644 --- a/python/fate_flow/utils/schedule_utils.py +++ b/python/fate_flow/utils/schedule_utils.py @@ -74,7 +74,7 @@ def _wrapper(*args, **kwargs): finally: ready_signal(job_id=job.f_job_id, set_or_reset=False) schedule_logger(job.f_job_id).info(f"release job {job.f_job_id} schedule lock") - return _result + return _result else: return func(*args, **kwargs) return _wrapper