mistral/mistral
Renat Akhmerov b7d133dd4a Add a periodic job to check workflow execution integrity
* Added a method called via scheduler to check and fix workflow
  execution integrity. Specifically, this method finds all
  task executions in RUNNING state and for each of them checks
  whether all its action/workflow executions are finished. If yes,
  it most likely means that the task got stuck (i.e. an RPC
  was lost) and we need to repair it.
* Also added atomic update of a task execution state using the
  well-known approach with "UPDATE ... WHERE" SQL query which
  returns a number of actually updated rows. This prevents
  from possible races between concurrent processes that try to
  update a task execution in overlapping transactions.
* Other minor style changes


Change-Id: If4f2efb05d959d1ffdb16515f08a811c5ce597e6
(cherry picked from commit 0d2ebb7b01)
2017-11-15 20:16:50 +00:00
..
actions Allow mistral actions to run when authentication is not configured. 2017-10-09 13:46:38 +00:00
api Add retries to read-only db operations 2017-11-08 19:10:47 +03:00
auth Add ssl support for keycloak auth middleware 2017-09-05 07:31:06 +00:00
cmd Fix services launcher to handle shutdown properly 2017-09-13 14:59:54 +00:00
db Add a periodic job to check workflow execution integrity 2017-11-15 20:16:50 +00:00
engine Add a periodic job to check workflow execution integrity 2017-11-15 20:16:50 +00:00
event_engine Merge "Fix event-triggers workflow namespace" 2017-08-09 07:45:22 +00:00
executors Optimize sending result to parent workflow 2017-10-13 18:12:07 +07:00
expressions Re-raise DB errors when evaluating expressions 2017-11-03 09:53:49 +00:00
ext Use the Mistral syntax highlighting on the dsl v2 page 2017-04-06 10:20:34 +01:00
hacking Fix the pep8 commands failed 2017-07-27 22:15:12 +08:00
lang Dynamic workflow name evaluation. 2017-10-13 07:17:36 +00:00
resources Fix for YaqlEvaluationException in std.create_instance workflow. 2016-07-12 00:29:23 -04:00
rpc Mistral fails on RabbitMQ restart 2017-10-09 13:42:12 +00:00
service Optimize API layer: using from_db_model() instead of from_dict() 2017-05-22 12:03:17 +07:00
services Add a periodic job to check workflow execution integrity 2017-11-15 20:16:50 +00:00
tests Add a periodic job to check workflow execution integrity 2017-11-15 20:16:50 +00:00
utils Add retries to read-only db operations 2017-11-08 19:10:47 +03:00
workflow Optimize mistral queries for 'get_task_executions' 2017-10-16 10:40:49 +00:00
__init__.py Remove eventlet monkey patch in mistral __init__ 2015-02-20 07:49:56 +00:00
_i18n.py Update and optimize documentation links 2017-07-19 17:10:49 +08:00
config.py Add a periodic job to check workflow execution integrity 2017-11-15 20:16:50 +00:00
context.py Refactor mistral context using oslo_context 2017-06-23 10:34:40 +12:00
exceptions.py Remove wrapping of database exceptions in _get_collection() 2017-10-26 05:44:52 +00:00
messaging.py Add event configuration for event trigger 2016-09-01 10:28:59 +12:00
serialization.py Add more use of mistral-lib in mistral 2017-06-20 15:23:18 +00:00
version.py Removed unnecessary utf-8 encoding 2017-01-11 02:58:04 +00:00