taskiq icon indicating copy to clipboard operation
taskiq copied to clipboard

Add intervals for scheduled task

Open so-saf opened this issue 11 months ago • 2 comments

#290 #348

Hi! First, thank you for the project!

In this PR, I want to add intervals for scheduled tasks. I am attaching one commit as a draft to coordinate further changes with you. I have implemented MVP, and a lot of related code has yet to be written, including documentation and tests.

The implementation is quite simple: We go through all scheduled tasks once a second and send them to the broker.

  • For cron tasks, the frequency remained around a minute.

Of the additional advantages, it can be noted that tasks marked with the "time" label are scheduled with less delay.

What do you think?

so-saf avatar Jan 11 '25 21:01 so-saf

#290 #348

Hi! First, thank you for the project!

In this PR, I want to add intervals for scheduled tasks. I am attaching one commit as a draft to coordinate further changes with you. I have implemented MVP, and a lot of related code has yet to be written, including documentation and tests.

The implementation is quite simple: We go through all scheduled tasks once a second and send them to the broker.

  • For cron tasks, the frequency remained around a minute.

Of the additional advantages, it can be noted that tasks marked with the "time" label are scheduled with less delay.

What do you think?

Need to be merge

Mothilal-hire10x avatar Jan 24 '25 04:01 Mothilal-hire10x

Also, please rebase your branch onto master. There were some changes.

s3rius avatar Mar 07 '25 08:03 s3rius