Skip to content

Commit 66eaefb

Browse files
authored
Update cli description to include jitter doc
1 parent 323c796 commit 66eaefb

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

docs/guide/cli.md

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -138,6 +138,7 @@ The number of signals before a hard kill can be configured with the `--hardkill-
138138
* `--log-level` is used to set a log level (default `INFO`).
139139
* `--log-format` is used to set a log format (default `%(asctime)s][%(name)s][%(levelname)-7s][%(processName)s] %(message)s`).
140140
* `--max-async-tasks` - maximum number of simultaneously running async tasks.
141+
* `--max-async-tasks-jitter` – Randomly varies the max async task limit between --max-async-tasks and a jittered value, helping prevent simultaneous worker restarts.
141142
* `--max-prefetch` - number of tasks to be prefetched before execution. (Useful for systems with high message rates, but brokers should support acknowledgements).
142143
* `--max-threadpool-threads` - number of threads for sync function execution.
143144
* `--no-propagate-errors` - if this parameter is enabled, exceptions won't be thrown in generator dependencies.
@@ -149,7 +150,7 @@ The number of signals before a hard kill can be configured with the `--hardkill-
149150
* `--shutdown-timeout` - maximum amount of time for graceful broker's shutdown in seconds (default 5).
150151
* `--wait-tasks-timeout` - if cannot read new messages from the broker or maximum number of tasks is reached, worker will wait for all current tasks to finish. This parameter sets the maximum amount of time to wait until shutdown.
151152
* `--hardkill-count` - Number of termination signals to the main process before performing a hardkill.
152-
153+
*
153154
## Scheduler
154155

155156
Scheduler is used to schedule tasks as described in [Scheduling tasks](./scheduling-tasks.md) section.

0 commit comments

Comments
 (0)