I'm yanking the general exception catching because it made it impossible to debug a problem we ran into - and it results in roughtly the same error message presented to the end user.

Updating SpiffWorkflow which will now handle the situation where a task does not have a parent task.
This commit is contained in:
danfunk 2023-05-15 16:53:27 -04:00
parent eb6a6f5808
commit a84b77b203
1 changed files with 0 additions and 8 deletions

View File

@ -438,14 +438,6 @@ def _interstitial_stream(process_instance: ProcessInstanceModel) -> Generator[st
)
yield render_data("error", api_error)
return
except Exception as e:
api_error = ApiError(
error_code="engine_steps_error",
message=f"Failed to complete an automated task. Error was: {str(e)}",
status_code=400,
)
yield render_data("error", api_error)
return
processor.refresh_waiting_tasks()
ready_engine_task_count = get_ready_engine_step_count(processor.bpmn_process_instance)
tasks = get_reportable_tasks()