Cookiecutter-django: celerybeat-schedule gets nuked on Docker

Created on 26 Apr 2017  路  4Comments  路  Source: pydanny/cookiecutter-django

The celerybeat-schedule file created by celerybeat isn't mounted and will be nuked on container rebuilds/restarts.

bug docker

Most helpful comment

This bug is happening to me also, I copied the log on a gist.
https://gist.github.com/robrivas/a3c4b6b9b723ffae5619bfbc9fa2d7a9

All 4 comments

isn't the celerybeat-schedule file created by celery on running of the celery process? that way it should not be a problem anyways. how can this be fixed?

isn't the celerybeat-schedule file created by celery on running of the celery process?

yep, but it's meant to be a persistent file. Celery creates it once and then uses it across restarts to determine which scheduled tasks have been run.

This bug is happening to me also, I copied the log on a gist.
https://gist.github.com/robrivas/a3c4b6b9b723ffae5619bfbc9fa2d7a9

The template now uses django-celery-beat as scheduler out of the box in #2084, which should avoid this from happening. Closing this.

Was this page helpful?
0 / 5 - 0 ratings

Related issues

vladimirmyshkovski picture vladimirmyshkovski  路  4Comments

sebastian-code picture sebastian-code  路  4Comments

pygabo picture pygabo  路  3Comments

yunti picture yunti  路  4Comments

webyneter picture webyneter  路  3Comments