cronitorio / cronitor-python

Python client for Cronitor
MIT License
73 stars 9 forks source link

Move celerybeat-schedule to new tempfile to avoid startup errors #16

Closed jdotjdot closed 2 years ago

jdotjdot commented 2 years ago

This attempts to solve the celerybeat startup issues found by @anthonynsimon by creating a new celerybeat database file in a tempfile to avoid corruption. Only does it when the scheduler is PersistentScheduler to avoid issues with other schedulers, like django-celery