Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Sleep _seconds_between_batches filter is inbetween individual tasks and not batches #127

Open
koen12344 opened this issue Dec 30, 2024 · 0 comments

Comments

@koen12344
Copy link

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 added a commit to koen12344/multisite-background-processing that referenced this issue Jan 2, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant