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

Implement "smart wait" logic for InfiniteTasks #185

Open
Tiendil opened this issue May 3, 2024 · 0 comments
Open

Implement "smart wait" logic for InfiniteTasks #185

Tiendil opened this issue May 3, 2024 · 0 comments

Comments

@Tiendil
Copy link
Owner

Tiendil commented May 3, 2024

Currently InfiniteTasks loop has constant sleep delay_between_runs seconds.

It is ok for now, but in the future, it could affect the speed of processing spikes of new news.

InfiniteTasks should support boolean return from single_run method. If single_run returns False, then InfiniteTasks should wait for delay_between_runs seconds before next iteration, otherwise it should start next iteration immediately.

Caused by gh-170

@Tiendil Tiendil added this to the 2.* Stabilisation milestone May 3, 2024
@Tiendil Tiendil removed this from the 3.* Stabilisation milestone Oct 12, 2024
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