added error handling to insterstitial page when running engine steps (#390)
Co-authored-by: jasquat <jasquat@users.noreply.github.com>
This commit is contained in:
parent
3fe48fb6a6
commit
cde64400ea
|
@ -51,6 +51,7 @@ from spiffworkflow_backend.services.authorization_service import AuthorizationSe
|
||||||
from spiffworkflow_backend.services.authorization_service import HumanTaskAlreadyCompletedError
|
from spiffworkflow_backend.services.authorization_service import HumanTaskAlreadyCompletedError
|
||||||
from spiffworkflow_backend.services.authorization_service import HumanTaskNotFoundError
|
from spiffworkflow_backend.services.authorization_service import HumanTaskNotFoundError
|
||||||
from spiffworkflow_backend.services.authorization_service import UserDoesNotHaveAccessToTaskError
|
from spiffworkflow_backend.services.authorization_service import UserDoesNotHaveAccessToTaskError
|
||||||
|
from spiffworkflow_backend.services.error_handling_service import ErrorHandlingService
|
||||||
from spiffworkflow_backend.services.file_system_service import FileSystemService
|
from spiffworkflow_backend.services.file_system_service import FileSystemService
|
||||||
from spiffworkflow_backend.services.process_instance_processor import ProcessInstanceProcessor
|
from spiffworkflow_backend.services.process_instance_processor import ProcessInstanceProcessor
|
||||||
from spiffworkflow_backend.services.process_instance_queue_service import ProcessInstanceIsAlreadyLockedError
|
from spiffworkflow_backend.services.process_instance_queue_service import ProcessInstanceIsAlreadyLockedError
|
||||||
|
@ -481,6 +482,7 @@ def _interstitial_stream(
|
||||||
"engine_steps_error", "Failed to complete an automated task.", exp=wfe
|
"engine_steps_error", "Failed to complete an automated task.", exp=wfe
|
||||||
)
|
)
|
||||||
yield _render_data("error", api_error)
|
yield _render_data("error", api_error)
|
||||||
|
ErrorHandlingService.handle_error(process_instance, wfe)
|
||||||
return
|
return
|
||||||
|
|
||||||
# path used by the interstitial page while executing tasks - ie the background processor is not executing them
|
# path used by the interstitial page while executing tasks - ie the background processor is not executing them
|
||||||
|
|
Loading…
Reference in New Issue