Skip to content

feat(scheduler): add interval #466

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

Draft
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

d3vyce
Copy link

@d3vyce d3vyce commented May 20, 2025

Hi!

As discuss in #290 #348

In this PR, I'm adding the ability to run scheduled tasks every X seconds. This fills a gap that CRON doesn't allow.
To avoid loop invocation spam, I calculate the next run based on which tasks are closest to executing. The next run is therefore dynamic.

This PR is still a WIP, but I welcome feedback to adjust the code if necessary.
I still have to do:

  • Base implementation
  • Documentation
  • Clean code
  • Tests

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

Successfully merging this pull request may close these issues.

1 participant