mistral/mistral/workflow
Renat Akhmerov 05252da835 Added session.flush() before update_on_match()
* It turns out that update_on_match() from oslo_db breaks fields
  of a persistent object (attached to the session) in some cases.
  For example, when we use PostgreSQL as a DB it doesn't properly
  merge fields of the given specimen onto the fields of the object
  attached to the SQLAlchemy session. For some reason, it cleans up
  the history of ORM events registered before this operation so
  that if some update took place in this session and they are not
  flushed yet to DB they simply get lost. Hence adding flush()
  on the session right before this operation helps.
* NOTE: this is rather a workaround than a fix of the root cause.
  Root cause still needs to be found.

Change-Id: I546badd8b1c96b68567287fc9d38b07738272503
Closes-Bug: #1736821
2018-01-22 16:16:48 +07:00
..
__init__.py Initial commit for the new engine 2014-08-06 16:24:26 +07:00
base.py Add a hacking rule for string interpolation at logging 2017-07-26 11:13:15 +00:00
commands.py Make "triggered_by" work in case of "join" tasks 2017-06-05 15:36:30 +00:00
data_flow.py Added session.flush() before update_on_match() 2018-01-22 16:16:48 +07:00
direct_workflow.py Add a hacking rule for string interpolation at logging 2017-07-26 11:13:15 +00:00
lookup_utils.py Optimize mistral queries for 'get_task_executions' 2017-10-16 04:22:10 +00:00
reverse_workflow.py Make "triggered_by" work in case of "join" tasks 2017-06-05 15:36:30 +00:00
states.py Add cancelled state to action executions 2016-11-16 19:34:04 +07:00
utils.py Add more use of mistral-lib in mistral 2017-06-20 15:23:18 +00:00