We have a periodic celery task
@periodic_task(run_every=crontab(hour=6)) def task(): pass We start this task every morning at 6 o'clock in the morning. We start the task logging.
A couple of days passed, we expect to see TWO lines in the logs.
But celery started this task 20 times. Weighed a bunch of loggers, screwed the sentry , simplified the task to a minimum, but the task continues to run in the wrong way.
What could be the problem?
Expected behavior described.
The command to start the worker:
celery -A project worker -B --loglevel=info --logfile=./logs/celery.log