Skip to content

Commit

Permalink
upd readme
Browse files Browse the repository at this point in the history
  • Loading branch information
Friskes committed Jul 7, 2024
1 parent d74a7b2 commit fd6cf30
Showing 1 changed file with 7 additions and 3 deletions.
10 changes: 7 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@

## Benefits of using this cli
> 1. The ability to run up to three servers (worker, beat, flower) simultaneously in one terminal, instead of running by default in three different terminals.
> 2. Automatic reboot of these servers when your codebase changes
> 2. Automatic reboot of these servers when your codebase changes.
## Install
1. Install package
Expand Down Expand Up @@ -51,7 +51,10 @@ Arguments can be passed in any order, it doesn't matter.
```shell
# worker cmd
# (WARNING) Note that the default pool is solo, because of this, all tasks will be performed sequentially, to get parallelism, install one of the libraries [gevent | eventlet] and redefine the default pool in cmd.
# (WARNING) Note that the default pool is solo,
# because of this, all tasks will be performed sequentially,
# to get parallelism, install one of the libraries [gevent | eventlet]
# and redefine the default pool in cmd.
celery -A <CELERY_APP> worker -E -l INFO -P solo
# beat cmd
Expand All @@ -63,7 +66,8 @@ celery --broker=redis://localhost:6379// flower -A <CELERY_APP> --url_prefix=flo

> valid commands:
```shell
# redefining the -A and -P parameter and adding a new --broker parameter to the default worker command
# redefining the -A and -P parameter
# and adding a new --broker parameter to the default worker command
python manage.py runcelery -w "-A <CELERY_APP> -P gevent --broker=redis://localhost:6379//"

# complete replacement of the default worker command with the passed command
Expand Down

0 comments on commit fd6cf30

Please sign in to comment.