Skip to main content

Function: calculateMaxDuration()

calculateMaxDuration(timeout: number, retryAttempts: number): string

Defined in: src/utils/duration.ts:18

Utility function to calculate the maximum duration for monitoring checks with retry attempts and exponential backoff.

Parametersโ€‹

timeoutโ€‹

number

Timeout value per attempt in seconds

retryAttemptsโ€‹

number

Number of retry attempts

Returnsโ€‹

string

Formatted duration string (e.g., "30s", "2m")