Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion docs/guides/scaling_crawlers.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ If you set `min_concurrency` too high compared to the available system resources

## Desired concurrency

The `desired_concurrency` option in the <ApiLink to="class/ConcurrencySettings">`ConcurrencySettings`</ApiLink> specifies the initial number of parallel tasks to start with, assuming sufficient resources are available. It defaults to the same value as `min_concurrency`.
The `desired_concurrency` option in the <ApiLink to="class/ConcurrencySettings">`ConcurrencySettings`</ApiLink> specifies the initial number of parallel tasks to start with, assuming sufficient resources are available.

<RunnableCodeBlock className="language-python" language="python">
{MinAndMaxConcurrencyExample}
Expand Down
2 changes: 1 addition & 1 deletion src/crawlee/_types.py
Original file line number Diff line number Diff line change
Expand Up @@ -119,7 +119,7 @@ def __init__(
max_tasks_per_minute: The maximum number of tasks per minute the pool can run. By default, this is set
to infinity, but you can pass any positive, non-zero number.
desired_concurrency: The desired number of tasks that should be running parallel on the start of the pool,
if there is a large enough supply of them. By default, it is `min_concurrency`.
if there is a large enough supply of them.
"""
if min_concurrency < 1:
raise ValueError('min_concurrency must be 1 or larger')
Expand Down
Loading