ohld / django-telegram-bot

My sexy Django + python-telegram-bot + Celery + Redis + Postgres + Dokku + GitHub Actions template
https://t.me/ffmemesbot
Apache License 2.0
691 stars 170 forks source link

Celery not working #20

Closed AllYouZombies closed 3 years ago

AllYouZombies commented 3 years ago

periodic tasks can only be started manually one time and never restarts by its own. console says "Usage: celery worker [OPTIONS] Try 'celery worker --help' for help.

Error: Invalid value for '-P' / '--pool': <class 'celery.concurrency.prefork.TaskPool'> is not one of 'prefork', 'eventlet', 'gevent', 'solo', 'processes', 'threads'."

Issue occurs only when deploying to dokku, in local containers it works just fine

anvarkhamidov commented 3 years ago

@shamaevnn @ohld Facing the same issue that said above

ohld commented 3 years ago

These issues are caused by breaking changes of the celery package. I'll update the command to match the new syntax.