Skip to content
This repository was archived by the owner on Feb 26, 2026. It is now read-only.
Open
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
1 change: 1 addition & 0 deletions src/default_config.py
Original file line number Diff line number Diff line change
Expand Up @@ -40,3 +40,4 @@
# General defaults
FIM_TYPE = "extent"
HTTP_CONNECTION_LIMIT = 100
NOMAD_MAX_CONCURRENT_DISPATCH = 5 # Keep this on the smaller side so that there aren't too many API calls being generated by many pipeline jobs running on a single client.
8 changes: 8 additions & 0 deletions src/load_config.py
Original file line number Diff line number Diff line change
Expand Up @@ -105,6 +105,14 @@ class Defaults(BaseModel):
gt=0,
description="Max concurrent outgoing HTTP connections",
)
nomad_max_concurrent_dispatch: int = Field(
default_factory=lambda: int(
os.getenv("NOMAD_MAX_CONCURRENT_DISPATCH", str(default_config.NOMAD_MAX_CONCURRENT_DISPATCH))
),
gt=0,
le=10,
description="Max concurrent Nomad API calls (should be less than urllib3's pool size of 10)",
)


class AppConfig(BaseModel):
Expand Down
Loading