Retry policy keeps iterating if the workflow is paused

Bug #1769012 reported by Vitalii Solodilov
18
This bug affects 4 people
Affects Status Importance Assigned to Milestone
Mistral
In Progress
Medium
Vitalii Solodilov

Bug Description

If I try to pause an execution, the retry iteration doesn't stop.

Actual:

* start task1
* 1 retry iteration
* 2 retry iteration
...
* 50 retry iteration
-> pause workflow
* 51 retry iteration
* 52 retry iteration
...
* 500 retry iteration

But it would be cool if a retry iteration was paused after pausing the execution. And it should be continued after resuming the execution.

Expected:

* start task1
* 1 retry iteration
* 2 retry iteration
...
* 50 retry iteration
-> pause workflow
... some time later
-> resume workflow
* 51 retry iteration
* 52 retry iteration
...
* 500 retry iteration

description: updated
description: updated
description: updated
description: updated
description: updated
Dougal Matthews (d0ugal)
Changed in mistral:
status: New → Confirmed
milestone: none → rocky-2
Changed in mistral:
assignee: nobody → Vitalii Solodilov (mcdoker18)
summary: - Workflow pause with task retry policy
+ Retry policy keeps iterating if the workflow is paused
Dougal Matthews (d0ugal)
Changed in mistral:
importance: Undecided → Medium
Dougal Matthews (d0ugal)
Changed in mistral:
milestone: rocky-2 → rocky-3
Dougal Matthews (d0ugal)
Changed in mistral:
milestone: rocky-3 → stein-1
Revision history for this message
Matt B (matty-brennan) wrote :

We have also seen this issue with asynchronous tasks and retries. If the execution is cancelled but an async tasks then fails, the retry logic will kick in and start up the task again inside the cancelled execution.

Dougal Matthews (d0ugal)
Changed in mistral:
milestone: stein-1 → none
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix proposed to mistral (master)

Fix proposed to branch: master
Review: https://review.opendev.org/c/openstack/mistral/+/914514

Changed in mistral:
status: Confirmed → In Progress
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.