Actually there are very few possibilities for the expression "turn avs off". It just will not fly in many offices, so we did exactly what you said: build a queue of replays.
Files that are locked are added to the queue. When the initial operation ends, we stop for 1 second and sequentially exit through the queue. Files that are not executed the second time are added in the second turn, and after the first completion we wait 3 seconds and go through the second.
Files that do not perform the second turn (third attempt) are reported.
source share