diff --git a/README.md b/README.md index 9ebb23c2b9..8a7b627ba2 100644 --- a/README.md +++ b/README.md @@ -359,7 +359,7 @@ curl http://localhost:6500/ You can start a celery worker with: ```sh -poetry run celery -A "palace.manager.celery.app.app" worker --concurrency 1 --pool solo --beat +poetry run celery -A "palace.manager.celery.app" worker --concurrency 1 --pool solo --beat ``` ### The Admin Interface diff --git a/docker/runit-scripts/beat/run b/docker/runit-scripts/beat/run index 84009111ed..71fe0e3519 100755 --- a/docker/runit-scripts/beat/run +++ b/docker/runit-scripts/beat/run @@ -14,4 +14,4 @@ mkdir -p /var/run/celery chown 1000:1000 /var/run/celery # Start the celery beat process -exec env/bin/celery -A "palace.manager.celery.app.app" beat --uid 1000 --gid 1000 --logfile /var/log/celery/beat.log -s /var/run/celery/beat-schedule +exec env/bin/celery -A "palace.manager.celery.app" beat --uid 1000 --gid 1000 --logfile /var/log/celery/beat.log -s /var/run/celery/beat-schedule diff --git a/docker/runit-scripts/worker-default/run b/docker/runit-scripts/worker-default/run index c517613eae..adedec0f87 100755 --- a/docker/runit-scripts/worker-default/run +++ b/docker/runit-scripts/worker-default/run @@ -10,4 +10,4 @@ mkdir -p /var/log/celery chown 1000:adm /var/log/celery # Start the celery worker -exec env/bin/celery -A "palace.manager.celery.app.app" worker --uid 1000 --gid 1000 --autoscale 4,1 --hostname default@%h -Q high,default --logfile /var/log/celery/default.log +exec env/bin/celery -A "palace.manager.celery.app" worker --uid 1000 --gid 1000 --autoscale 4,1 --hostname default@%h -Q high,default --logfile /var/log/celery/default.log diff --git a/docker/runit-scripts/worker-high/run b/docker/runit-scripts/worker-high/run index a902a11293..cb956656ea 100755 --- a/docker/runit-scripts/worker-high/run +++ b/docker/runit-scripts/worker-high/run @@ -10,4 +10,4 @@ mkdir -p /var/log/celery chown 1000:adm /var/log/celery # Start the celery worker -exec env/bin/celery -A "palace.manager.celery.app.app" worker --uid 1000 --gid 1000 --concurrency 1 --hostname high@%h -Q high --logfile /var/log/celery/high.log +exec env/bin/celery -A "palace.manager.celery.app" worker --uid 1000 --gid 1000 --concurrency 1 --hostname high@%h -Q high --logfile /var/log/celery/high.log diff --git a/src/palace/manager/celery/app.py b/src/palace/manager/celery/app.py index a0cede987b..ecf65a7eeb 100644 --- a/src/palace/manager/celery/app.py +++ b/src/palace/manager/celery/app.py @@ -2,7 +2,7 @@ This file provides the entry point for the Celery cli scripts. When running the Celery worker from the command line. You can use the following command: ``` -celery -A "palace.manager.celery.app.app" worker +celery -A "palace.manager.celery.app" worker ``` Note: This file is not used in the app directly and shouldn't be imported anywhere.