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

A time based scheduler #3672

Open
xlc opened this issue Mar 13, 2024 · 1 comment
Open

A time based scheduler #3672

xlc opened this issue Mar 13, 2024 · 1 comment
Labels
I5-enhancement An additional feature request.

Comments

@xlc
Copy link
Contributor

xlc commented Mar 13, 2024

Currently the pallet-scheduler is able to schedule tasks to be dispatched at a particular block. However, with async backing and dynamic block time, block number based scheduling become less useful. Majority of the business logics are time based and we need a scheduler that's able to for example, schedule a task to be dispatched daily.

We can either have a new scheduler or to see if we can abstract the logic in such way to make the current pallet-scheduler also be schedule time based tasks.

@ggwpez
Copy link
Member

ggwpez commented Mar 13, 2024

Yea i thought about some kind of pallet-calendar that exposes OnBeginWeek, OnBeginDay or whatever.
But having it in the scheduler would also be needed for one-off things.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
I5-enhancement An additional feature request.
Projects
Status: Backlog
Development

No branches or pull requests

3 participants