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

How to ensure only one entry for scheduled job is added on subsequent restarts? #86

Closed
rajeshyogeshwar opened this issue Mar 22, 2018 · 2 comments

Comments

@rajeshyogeshwar
Copy link

I want to add an entry for a job into Redis when celery is started. In order to do so I need to ensure that the entry is not duplicated in subsequent restarts. Is there a way provided to do so? If not, is there a possibility for me checking by task name?

@rajeshyogeshwar rajeshyogeshwar changed the title How to check if a task to be scheduled is already scheduled? How to ensure only one entry for scheduled job is added on subsequent restarts? Mar 22, 2018
@sibson
Copy link
Owner

sibson commented Aug 20, 2019

I think https://docs.celeryproject.org/en/latest/userguide/periodic-tasks.html#crontab-schedules does what you want. If not could you provide more details.

@rajeshyogeshwar
Copy link
Author

@sibson owing to the fact that the question is a almost 18 months old, I definitely found an alternate way. But thanks for responding.

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