mistral/mistral/db/v2/sqlalchemy
Renat Akhmerov 80a1bed67b Simplify workflow and join completion logic
* action_queue module is replaced with the more generic
  post_tx_queue module that allows to register operations that must
  run after the main DB transaction associated with processing a
  workflow event such as completing action.
* Instead of calling workflow completion check from all places
  where task may possibly complete, Mistral now registers a post
  transactional operation that runs after the main DB transaction
  (to make sure at least one needed consistent DB read) right
  inside the task completion logic. It reduces clutter significantly.
* Workflow completion check is now registered only if the just
  completed task may lead to workflow completion, i.e. if it's the
  last one in a workflow branch.
* Join now checks delayed calls to reduce a number of join
  completion checks created with scheduler and also uses post
  transactional queue for that.

Closes-Bug: #1801872
Change-Id: I90741d4121c48c42606dfa850cfe824557b095d0
2018-11-09 14:17:20 +07:00
..
__init__.py Refactoring DB access layer 2014-08-13 11:14:29 +07:00
api.py Simplify workflow and join completion logic 2018-11-09 14:17:20 +07:00
filters.py Fix tag searching 2018-04-10 09:38:25 +01:00
models.py Increase delayed_calls_v2.auth_context 2018-08-29 09:58:23 +02:00