Skip to content

Commit

Permalink
Merge pull request #309 from IUSCA/worker-docs-update
Browse files Browse the repository at this point in the history
document config for upper limit of parallel tasks
  • Loading branch information
deepakduggirala authored Sep 24, 2024
2 parents b5b4934 + 8bb86fe commit 8eac6ff
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions docs/worker/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,16 @@
- Config / settings are in `workers/config/*.py` and `.env`
- Test code is in `tests/`

### Parallel tasks limit

The maximum number of active (i.e. not 'PENDING') tasks that can run at a time is determined by the number of Celery workers, which is currently set to 8.

This config can be found in `ecosystem.config.js`, under app `celery_worker`:

```
-m celery -A workers.celery_app worker ... --autoscale=8,2
```

### Hot Module Replacement

Worker automatically run with updated code except for the code in
Expand Down

0 comments on commit 8eac6ff

Please sign in to comment.