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

Does scheduler.cron de-duplicate jobs with the same id? #268

Open
kennysong opened this issue Jun 25, 2021 · 1 comment
Open

Does scheduler.cron de-duplicate jobs with the same id? #268

kennysong opened this issue Jun 25, 2021 · 1 comment

Comments

@kennysong
Copy link

If I run scheduler.cron() twice with the same id argument, the job is only scheduled once.

This is great, but it's not documented anywhere. This old issue also seems to contradict what I'm seeing.

Can someone confirm that the scheduler actually de-duplicates cron jobs with the same id?

@phauch
Copy link

phauch commented Jan 10, 2024

This also works for scheduler.schedule()
Would be nice if this was documented anywhere :-)

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

2 participants