Squashed 'spiffworkflow-backend/' changes from d0336039c..57ba8e0c8
57ba8e0c8 also set up the config for hacked app w/ burnettk 045fe9c93 configure sentry in hacked up app w/ burnettk fd1a273d3 save process instance even it fails w/ burnettk git-subtree-dir: spiffworkflow-backend git-subtree-split: 57ba8e0c8205cb049d3f93c21f73be96232dda93
This commit is contained in:
parent
64e7049c9a
commit
9781908243
|
@ -132,6 +132,8 @@ def get_hacked_up_app_for_script() -> flask.app.Flask:
|
||||||
else:
|
else:
|
||||||
raise Exception(f"Could not find {full_process_model_path}")
|
raise Exception(f"Could not find {full_process_model_path}")
|
||||||
app = create_app()
|
app = create_app()
|
||||||
|
setup_config(app)
|
||||||
|
configure_sentry(app)
|
||||||
return app
|
return app
|
||||||
|
|
||||||
|
|
||||||
|
|
|
@ -895,6 +895,10 @@ class ProcessInstanceProcessor:
|
||||||
except WorkflowTaskExecException as we:
|
except WorkflowTaskExecException as we:
|
||||||
raise ApiError.from_workflow_exception("task_error", str(we), we) from we
|
raise ApiError.from_workflow_exception("task_error", str(we), we) from we
|
||||||
|
|
||||||
|
finally:
|
||||||
|
if save:
|
||||||
|
self.save()
|
||||||
|
|
||||||
def cancel_notify(self) -> None:
|
def cancel_notify(self) -> None:
|
||||||
"""Cancel_notify."""
|
"""Cancel_notify."""
|
||||||
self.__cancel_notify(self.bpmn_process_instance)
|
self.__cancel_notify(self.bpmn_process_instance)
|
||||||
|
|
Loading…
Reference in New Issue