Исправлены команды запуска Celery в Docker (worker и beat) для корректного автоопределения приложения
This commit is contained in:
@@ -173,7 +173,7 @@ case "$1" in
|
|||||||
wait_for_postgres
|
wait_for_postgres
|
||||||
wait_for_redis
|
wait_for_redis
|
||||||
echo "Starting Celery Worker..."
|
echo "Starting Celery Worker..."
|
||||||
exec celery -A myproject.celery:app worker \
|
exec celery -A myproject worker \
|
||||||
-l info \
|
-l info \
|
||||||
-Q celery,photo_processing \
|
-Q celery,photo_processing \
|
||||||
--concurrency=2
|
--concurrency=2
|
||||||
@@ -182,7 +182,7 @@ case "$1" in
|
|||||||
wait_for_postgres
|
wait_for_postgres
|
||||||
wait_for_redis
|
wait_for_redis
|
||||||
echo "Starting Celery Beat..."
|
echo "Starting Celery Beat..."
|
||||||
exec celery -A myproject.celery:app beat -l info
|
exec celery -A myproject beat -l info
|
||||||
;;
|
;;
|
||||||
migrate)
|
migrate)
|
||||||
wait_for_postgres
|
wait_for_postgres
|
||||||
|
|||||||
Reference in New Issue
Block a user