deb-mistral/mistral
Renat Akhmerov 1b0f0cddd6 Change execution mechanism for 'join' tasks
* In order to avoid duplicates of same 'join' tasks we now use
  named locks to exclusively create a task execution for 'join'
  tasks in DB. Transaction that does that is always separate
  from task completion logic and is very short. This is needed
  to eliminate DB contention on same records of task execution
  table. This is also a reason to use a separate mechanism such
  as named locks, and additionally this reduces a number possible
  scenarios for getting into deadlocks because for task executions
  we have too many different access patterns that can lead to them
  in case of doing locking on right on their table records.
  So this approach guarantees that there's only one transaction
  creates a new task execution object for 'join' task and schedules
  'refresh_task_state' job that check 'join' completion.
* Dropped scheduler 'unique_key' column with unique constraint
  because in practice it causes DB deadlocks (at least on MySQL)
  while simultaneously inserting and updating the table
* Instead of 'unique_key' column we added non-unique 'key' column
  that can potentially be used for squashing delayed calls
  by scheduler itself (not implemented yet)
* Adjusted Scheduler implementation and tests accordingly
* Fixed task() YAQL function to work without precisely resolve
  task execution object in case it's called for the current
  task. Previously it was dependent on the luck and we were
  lucky enough that tests were passing.
* Increased length of 'unique_key' column for task executions to
  250 which is close to a limit for string fields participating
  in unique constraints.

Change-Id: Ib7aaa20c2c8834ab0f2d9c90457677c9edb62805
2016-09-07 13:18:18 +02:00
..
actions Add client caching for OpenStack actions 2016-08-29 17:47:50 -04:00
api Filtering support for actions 2016-08-11 09:38:55 +00:00
cmd TrivialFix: Remove logging import unused 2016-08-26 17:19:06 +07:00
db Change execution mechanism for 'join' tasks 2016-09-07 13:18:18 +02:00
engine Change execution mechanism for 'join' tasks 2016-09-07 13:18:18 +02:00
hacking Hacking log for warning 2016-03-30 11:50:15 +00:00
resources Fix for YaqlEvaluationException in std.create_instance workflow. 2016-07-12 00:29:23 -04:00
services Change execution mechanism for 'join' tasks 2016-09-07 13:18:18 +02:00
tests Change execution mechanism for 'join' tasks 2016-09-07 13:18:18 +02:00
utils Change execution mechanism for 'join' tasks 2016-09-07 13:18:18 +02:00
workbook Change execution mechanism for 'join' tasks 2016-09-07 13:18:18 +02:00
workflow Change execution mechanism for 'join' tasks 2016-09-07 13:18:18 +02:00
__init__.py Remove eventlet monkey patch in mistral __init__ 2015-02-20 07:49:56 +00:00
config.py Add client caching for OpenStack actions 2016-08-29 17:47:50 -04:00
context.py Add client caching for OpenStack actions 2016-08-29 17:47:50 -04:00
coordination.py Raise user-friendly exception in case of connection failed 2015-08-19 10:40:43 +08:00
exceptions.py Add KeyCloak OpenID Connect server-side authentication 2016-07-08 17:31:06 +07:00
expressions.py Refactoring exception hierarchy 2016-05-11 10:13:33 +00:00
messaging.py Add event engine service 2016-07-22 23:19:16 +12:00
version.py Adjusting all license headers in python files so they look the same 2013-12-30 13:27:06 +07:00