diff --git a/spiffworkflow-backend/src/spiffworkflow_backend/services/workflow_execution_service.py b/spiffworkflow-backend/src/spiffworkflow_backend/services/workflow_execution_service.py index a4a392ef..d2bd9d69 100644 --- a/spiffworkflow-backend/src/spiffworkflow_backend/services/workflow_execution_service.py +++ b/spiffworkflow-backend/src/spiffworkflow_backend/services/workflow_execution_service.py @@ -472,7 +472,6 @@ class WorkflowExecutionService: self.process_bpmn_messages() self.queue_waiting_receive_messages() - self.schedule_waiting_timer_events() return task_runnability except WorkflowTaskException as wte: ProcessInstanceTmpService.add_event_to_process_instance( @@ -493,6 +492,7 @@ class WorkflowExecutionService: self.execution_strategy.add_object_to_db_session(self.bpmn_process_instance) if save: self.process_instance_saver() + self.schedule_waiting_timer_events() def is_happening_soon(self, time_in_seconds: int) -> bool: # if it is supposed to happen in less than the amount of time we take between polling runs