Я развертываю сайт на хостинге, на vps сервере, и celery beat не запускается при перезагрузке сервера.
Но запускается только когда я пропишу
sudo systemctl restart celery_beat
У меня есть celery_beat.service файл:
[Unit]
Description=Celery Beat Service
After=network.target
[Service]
Type=simple
User=django
Group=django
WorkingDirectory=/home/django/django_venv/mdsite
ExecStart=/usr/local/bin/celery -A mdsite --beat -l info
Restart=always
[Install]
WantedBy=multi-user.target
Ошибка при перезагрузке сервера:
Starting Celery Service...
celery_beat.service: start operation timed out. Terminating.
celery beat v5.2.7 (dawn-chorus) is starting.
__ - ... __ - _
LocalTime -> 2023-05-29 12:57:59
Configuration ->
. broker -> redis://127.0.0.1:6379/0
. loader -> celery.loaders.app.AppLoader
. scheduler -> celery.beat.PersistentScheduler
. db -> celerybeat-schedule
. logfile -> [stderr]@%WARNING
. maxinterval -> 5.00 minutes (300s)
celery_beat.service: Failed with result 'timeout'.
Failed to start Celery Service.
-- Reboot --
Started Celery Beat Service.
Stopping Celery Beat Service...
celery beat v5.2.7 (dawn-chorus) is starting.
__ - ... __ - _
LocalTime -> 2023-05-29 13:08:05
Configuration ->
. broker -> redis://127.0.0.1:6379/0