deb-mistral/mistral/db
Dmitri Zimine 6a2481c6c6 Catch workflow errors
Avoid keeping workflow in zombie state: on unexpected errors
fail the workflow execution and save error information. If possible,
fail the correspondent tasks, too.

Done:
- [x] Introduce state_info into Execution, fill it with error info
when workflow fails.
- [x] Add error handlers to `on_task_result` and `run_task`
- [x] Add error handlers and tests to `start_workflow`
- [x] Add tests for YAQL eval exceptions
- [x] Add error handler and tests to `resume_worklfow`

TODO: 
- [ ] Make _fail_workflow public and let user fail workflow via API
(on separate commit)

Closes-bug: 1415886
Change-Id: Ib1fd661580d3a426dbbc7401a3622a98c7840e00
2015-02-04 22:27:07 -06:00
..
sqlalchemy Working on secure DB access (part 3) 2015-01-22 16:37:30 +00:00
v1 Cleaning up obsolete TODOs and minor style changes 2014-09-25 14:33:18 -07:00
v2 Catch workflow errors 2015-02-04 22:27:07 -06:00
__init__.py Adding pecan, wsme, oslo and adjusting packages 2013-11-21 13:47:42 +07:00