File tree Expand file tree Collapse file tree 1 file changed +7
-4
lines changed Expand file tree Collapse file tree 1 file changed +7
-4
lines changed Original file line number Diff line number Diff line change @@ -69,7 +69,7 @@ LIGHTWEIGHT_QUEUE_REDIS_PORT = 12345
69
69
and then running:
70
70
71
71
```
72
- $ python manage.py queue_runner --config =special.py
72
+ $ python manage.py queue_runner --extra-settings =special.py
73
73
```
74
74
75
75
will result in the runner to use the settings from the specified configuration
@@ -149,10 +149,13 @@ part of a pool:
149
149
$ python manage.py queue_runner --machine 2 --of 4
150
150
```
151
151
152
- Alternatively a runner can be told explicitly which configuration to use:
152
+ Alternatively a runner can have be told explicitly how to be have by having
153
+ extra settings loaded (any ` LIGHTWEIGHT_QUEUE_* ` constants found in the file
154
+ will replace equivalent django settings) and being configured to run exactly as
155
+ the settings describe:
153
156
154
157
```
155
- $ python manage.py queue_runner --exact-configuration --config =special.py
158
+ $ python manage.py queue_runner --exact-configuration --extra-settings =special.py
156
159
```
157
160
158
161
When using ` --exact-configuration ` the number of workers is configured exactly,
@@ -188,7 +191,7 @@ $ python manage.py queue_runner --machine 3 --of 3
188
191
will result in one worker for ` queue1 ` on the current machine, while:
189
192
190
193
```
191
- $ python manage.py queue_runner --exact-configuration --config =special.py
194
+ $ python manage.py queue_runner --exact-configuration --extra-settings =special.py
192
195
```
193
196
194
197
will result in two workers on the current machine.
You can’t perform that action at this time.
0 commit comments