File tree Expand file tree Collapse file tree 1 file changed +5
-5
lines changed
services/dynamic-scheduler/src/simcore_service_dynamic_scheduler/services/generic_scheduler Expand file tree Collapse file tree 1 file changed +5
-5
lines changed Original file line number Diff line number Diff line change @@ -268,11 +268,6 @@ async def _safe_event(self, schedule_id: ScheduleId) -> AsyncIterator[None]:
268268 message = log_kwargs ["msg" ],
269269 )
270270
271- async def safe_on_schedule_event (self , schedule_id : ScheduleId ) -> None :
272- # NOTE: do not call this directly, you are doing something wrong
273- async with self ._safe_event (schedule_id ):
274- await self ._on_schedule_event (schedule_id )
275-
276271 async def cancel_schedule (self , schedule_id : ScheduleId ) -> None :
277272 """
278273 Cancels and runs destruction of the operation
@@ -418,6 +413,11 @@ async def restart_operation_step_in_error(
418413 expected_steps_count = len (step_group ),
419414 )
420415
416+ async def safe_on_schedule_event (self , schedule_id : ScheduleId ) -> None :
417+ # NOTE: do not call this directly, you are doing something wrong
418+ async with self ._safe_event (schedule_id ):
419+ await self ._on_schedule_event (schedule_id )
420+
421421 async def _on_schedule_event (self , schedule_id : ScheduleId ) -> None :
422422 schedule_data_proxy = ScheduleDataStoreProxy (
423423 store = self ._store , schedule_id = schedule_id
You can’t perform that action at this time.
0 commit comments