| 1 |
--- |
| 2 |
|
| 3 |
fixes: |
| 4 |
- | |
| 5 |
Workflow output sometimes was not calculated correctly due to |
| 6 |
the race condition between different transactions: the one that |
| 7 |
checks workflow completion (i.e. calls "check_and_complete") and |
| 8 |
the one that processes action execution completion (i.e. calls |
| 9 |
"on_action_complete"). Calculating output sometimes was based on |
| 10 |
stale data cached by the SQLAlchemy session. To fix this, we just |
| 11 |
need to expire all objects in the session so that they are |
| 12 |
refreshed automatically if we read their state in order to make |
| 13 |
required calculations. The corresponding change was made. |