Expand description
Global constants used throughout the AGPM codebase.
This module contains timeout durations, retry parameters, and other numeric constants that are used across multiple modules. Defining them centrally improves maintainability and makes magic numbers more discoverable.
Constants§
- DEFAULT_
LOCK_ TIMEOUT - Legacy constant for backwards compatibility - prefer
default_lock_timeout()function. - FALLBACK_
CORE_ COUNT - Default CPU core count when detection fails.
- GIT_
CLONE_ TIMEOUT - Timeout for Git clone operations (120 seconds).
- GIT_
FETCH_ TIMEOUT - Timeout for Git fetch operations (60 seconds).
- GIT_
WORKTREE_ TIMEOUT - Timeout for Git worktree creation (60 seconds).
- MAX_
BACKOFF_ DELAY_ MS - Maximum backoff delay for exponential backoff (500ms).
- MIN_
PARALLELISM - Minimum number of parallel operations regardless of CPU count.
- PARALLELISM_
CORE_ MULTIPLIER - Multiplier applied to CPU core count for default parallelism.
- PENDING_
STATE_ TIMEOUT - Legacy constant for backwards compatibility - prefer
pending_state_timeout()function. - STARTING_
BACKOFF_ DELAY_ MS - Starting delay for exponential backoff (10ms).
Functions§
- batch_
operation_ timeout - Timeout for batch operations using
join_all(5 minutes). - default_
lock_ timeout - Default timeout for cache lock acquisition (120 seconds).
- pending_
state_ timeout - Timeout for pending operations (10 seconds).