Closed markkuriekkinen closed 3 years ago
For your info, @Gehock
Simple and small change seems to be enough:
ExecStart=/srv/radar/venv/bin/celery \
--app radar \
worker \
--pidfile=/run/radar/celery_main.pid \
--loglevel=info \
--concurrency 1 \
--queues celery \
--hostname worker_main@radar
The --app radar
option is moved before worker
.
We must upgrade Celery to the latest v5 series. Old Celery v4.1 does not work in Python 3.7: #14.
Celery v5 changes the command-line arguments. We should update the deployments docs accordingly, e.g., https://github.com/apluslms/radar/blob/96ccbcb165bc77dddd6a0d71a8494ecb0c42c304/doc/celery-systemd/radar-celery.service#L14-L20
With Celery v5 and old configuration files, I got this error from the "Radar Celery main service" (systemd):