From abc2e5aac8d0d9cdc5e1cabaf1e24e6b93c57871 Mon Sep 17 00:00:00 2001 From: jbirddog <100367399+jbirddog@users.noreply.github.com> Date: Thu, 9 Mar 2023 08:03:18 -0500 Subject: [PATCH] Balance lock with unlock (#169) --- .../routes/process_instances_controller.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/spiffworkflow-backend/src/spiffworkflow_backend/routes/process_instances_controller.py b/spiffworkflow-backend/src/spiffworkflow_backend/routes/process_instances_controller.py index 8aefdfae..32d35ba3 100644 --- a/spiffworkflow-backend/src/spiffworkflow_backend/routes/process_instances_controller.py +++ b/spiffworkflow-backend/src/spiffworkflow_backend/routes/process_instances_controller.py @@ -117,10 +117,10 @@ def process_instance_run( ) processor = ProcessInstanceProcessor(process_instance) - processor.lock_process_instance("Web") if do_engine_steps: try: + processor.lock_process_instance("Web") processor.do_engine_steps(save=True) except ApiError as e: ErrorHandlingService().handle_error(processor, e)