Skip to content

Commit

Permalink
document num_workers worker cofiguration (#1242)
Browse files Browse the repository at this point in the history
  • Loading branch information
kaplanelad authored Feb 3, 2025
1 parent 92b152b commit 826e150
Showing 1 changed file with 14 additions and 4 deletions.
18 changes: 14 additions & 4 deletions docs-site/content/docs/processing/workers.md
Original file line number Diff line number Diff line change
Expand Up @@ -48,29 +48,39 @@ Then, configure a Redis based queue backend:
```yaml
queue:
kind: Redis
# Redis connection URI
# Redis connection URI.
uri: "{{ get_env(name="REDIS_URL", default="redis://127.0.0.1") }}"
# Dangerously flush all data.
dangerously_flush: false
# represents the number of tasks a worker can handle simultaneously.
num_workers: 2
```
Or a Postgres based queue backend:
```yaml
queue:
kind: Postgres
# Postgres Queue connection URI
# Postgres Queue connection URI.
uri: "{{ get_env(name="PGQ_URL", default="postgres://localhost:5432/mydb") }}"
# Dangerously flush all data.
dangerously_flush: false
# represents the number of tasks a worker can handle simultaneously.
num_workers: 2
```
Or a SQLite based queue backend:
```yaml
queue:
kind: Sqlite
# SQLite Queue connection URI
uri: "{{ get_env(name="SQLTQ_URL", default="sqlite://loco_development.sqlite?mode=rwc") }}"
# SQLite Queue connection URI.
uri: "{{ get_env(name="SQLTQ_URL", default="sqlite://loco_development.sqlite?
mode=rwc") }}"
# Dangerously flush all data.
dangerously_flush: false
# represents the number of tasks a worker can handle simultaneously.
num_workers: 2
```
## Running the worker process
Expand Down

0 comments on commit 826e150

Please sign in to comment.