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:
parent
f33f919962
commit
7c9adacdc7
|
@ -438,14 +438,6 @@ def _interstitial_stream(process_instance: ProcessInstanceModel) -> Generator[st
|
||||||
)
|
)
|
||||||
yield render_data("error", api_error)
|
yield render_data("error", api_error)
|
||||||
return
|
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()
|
processor.refresh_waiting_tasks()
|
||||||
ready_engine_task_count = get_ready_engine_step_count(processor.bpmn_process_instance)
|
ready_engine_task_count = get_ready_engine_step_count(processor.bpmn_process_instance)
|
||||||
tasks = get_reportable_tasks()
|
tasks = get_reportable_tasks()
|
||||||
|
|
Loading…
Reference in New Issue