Make sure that only one engine starts a workflow for every cron
trigger cycle by checking the row count of the DML statements used
to update the cron trigger in the DB:
* Modify the update cron trigger to include a WHERE statement that
verifies that no other engine already updated the cron trigger.
* Change the sqlachemy method used for deleting the cron trigger to be
able to retrieve the row count of the deleted rows
Start the workflow execution only if the current engine was able to
update the cron trigger DB row
Reviewed: https:/ /review. openstack. org/243234 /git.openstack. org/cgit/ openstack/ mistral/ commit/ ?id=7f9c0c62419 888201e129282ba 9d548d5fffdff5
Committed: https:/
Submitter: Jenkins
Branch: master
commit 7f9c0c624198882 01e129282ba9d54 8d5fffdff5
Author: Moshe Elisha <email address hidden>
Date: Mon Nov 9 17:20:35 2015 +0000
Ensure only one WF execution for every CT cycle
Make sure that only one engine starts a workflow for every cron
trigger cycle by checking the row count of the DML statements used
to update the cron trigger in the DB:
* Modify the update cron trigger to include a WHERE statement that
verifies that no other engine already updated the cron trigger.
* Change the sqlachemy method used for deleting the cron trigger to be
able to retrieve the row count of the deleted rows
Start the workflow execution only if the current engine was able to
update the cron trigger DB row
Change-Id: I9d3bec51844de2 18a46cf6ff53bed f9a00069e30
Closes-Bug: #1513548