-
Sub-task
-
Resolution: Unresolved
-
None
-
None
-
Medium
-
FIXED: AutoQA now applies lock state only of not already locked
-
Emptyshow more show less
Problem
When starting the AutoQA and another user has opened the task (and locks it) the AutoQA will not run
Solution
When a task is locked and someone starts an Auto-QA, the Operation shall start with a new Worker "Start delayed Operation" (general implementation for all Operations). This Worker is queued with the state "delayed" and waits for the task to be unlocked. When the task is unlocked, the worker locks it, sets the operation state and queues the Operation (just what happens now when the start operation request is done).
- The worker has the task-guid and the desired operation-type as param
- It is queued with a delay of 120 seconds each time (override ::calculateDelay)
- when the delay is done, the worker checks, if the task is unlocked now, if yes, it starts the operation, if not, it delays itself again
- After 4h max delay time the worker terminates and writes an warning-event for the task the Operation could not be started and sends a message to the user that requested the operation via the messagebus