wp-background-processing icon indicating copy to clipboard operation
wp-background-processing copied to clipboard

Sleep _seconds_between_batches filter is inbetween individual tasks and not batches

Open koen12344 opened this issue 1 year ago • 0 comments

This might be a misnomer but the sleep() function controlled by the $this->identifier . '_seconds_between_batches' is actually between every task, and not every batch as the name of the filter would make you believe.

afbeelding

Having a sleep() function within the task itself is not necessary because you can just put one there in your child class task() function if need be.

Also I think you should be able to set this delay through a class property instead of a filter (or both).

koen12344 avatar Dec 30 '24 10:12 koen12344