(seconds: int = CLAIM_LEASE_SECONDS)
| 305 | |
| 306 | |
| 307 | def stale_claim_before(seconds: int = CLAIM_LEASE_SECONDS) -> str: |
| 308 | return ( |
| 309 | (datetime.now(timezone.utc) - timedelta(seconds=seconds)).isoformat().replace("+00:00", "Z") |
| 310 | ) |
| 311 | |
| 312 | |
| 313 | def state_dir() -> Path: |
no outgoing calls
no test coverage detected