(rawValue, fallback)
| 8 | const DEFAULT_ACTIVE_JOB_TTL_MS = 45 * 60 * 1000; |
| 9 | |
| 10 | function parsePositiveInt(rawValue, fallback) { |
| 11 | const parsedValue = Number.parseInt(String(rawValue ?? ""), 10); |
| 12 | return Number.isFinite(parsedValue) && parsedValue > 0 ? parsedValue : fallback; |
| 13 | } |
| 14 | |
| 15 | function getRateLimitConfig() { |
| 16 | return { |
no test coverage detected