Skip to content

Commit

Permalink
Update celery
Browse files Browse the repository at this point in the history
  • Loading branch information
jonathangreen committed Apr 25, 2024
1 parent 606a3bc commit 0897285
Show file tree
Hide file tree
Showing 5 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
2 changes: 1 addition & 1 deletion docker/runit-scripts/beat/run
Original file line number Diff line number Diff line change
Expand Up @@ -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
2 changes: 1 addition & 1 deletion docker/runit-scripts/worker-default/run
Original file line number Diff line number Diff line change
Expand Up @@ -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
2 changes: 1 addition & 1 deletion docker/runit-scripts/worker-high/run
Original file line number Diff line number Diff line change
Expand Up @@ -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
2 changes: 1 addition & 1 deletion src/palace/manager/celery/app.py
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand Down

0 comments on commit 0897285

Please sign in to comment.