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

Unified timer framework in TiDB #43615

Open
13 of 14 tasks
lcwangchao opened this issue May 8, 2023 · 0 comments
Open
13 of 14 tasks

Unified timer framework in TiDB #43615

lcwangchao opened this issue May 8, 2023 · 0 comments
Labels
sig/sql-infra SIG: SQL Infra type/feature-request Categorizes issue or PR as related to a new feature.

Comments

@lcwangchao
Copy link
Collaborator

lcwangchao commented May 8, 2023

There are many requirements for scheduling some jobs periodically in TiDB. For example, TTL needs to schedule a job to delete expired rows every several hours. The implementations look similar in these features, that is: schedule a background "watcher" task in the cluster to check the timer's condition. Once the timer is up to time, then schedule a new job to do something. The "watcher" task will also persist the timer's progress (such as the last job's execution time) to avoid a duplicated job's schedule.

It's better to provide a unified interface to all features with the above requirement.

Subtasks

@lcwangchao lcwangchao added type/feature-request Categorizes issue or PR as related to a new feature. sig/sql-infra SIG: SQL Infra labels May 8, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
sig/sql-infra SIG: SQL Infra type/feature-request Categorizes issue or PR as related to a new feature.
Projects
None yet
Development

No branches or pull requests

1 participant