Harden stuck-job retry accounting and retry config validation
This commit is contained in:
@@ -23,3 +23,11 @@ def test_job_lease_timeout_must_cover_max_review_runtime(monkeypatch: pytest.Mon
|
||||
|
||||
with pytest.raises(ValidationError, match="JOB_LEASE_TIMEOUT_SECONDS must be at least"):
|
||||
get_settings()
|
||||
|
||||
|
||||
def test_max_stuck_job_retries_must_be_non_negative(monkeypatch: pytest.MonkeyPatch) -> None:
|
||||
monkeypatch.setenv("MAX_STUCK_JOB_RETRIES", "-1")
|
||||
get_settings.cache_clear()
|
||||
|
||||
with pytest.raises(ValidationError, match="MAX_STUCK_JOB_RETRIES must be >= 0"):
|
||||
get_settings()
|
||||
|
||||
Reference in New Issue
Block a user