Cooldown
Mandatory delay between repeated actions
Mechanism
Minimum Interval Enforcement: After action A, enforce minimum delay D before A can repeat. Attempts during cooldown rejected or queued. Cooldown timer starts on action completion. Different actions can have different cooldowns. It acts as the enforcement mechanism for Throttle policies, rejecting requests until the timer expires.
Invariants
- Action blocked until T_last + Duration
- Timer is monotonic
Parameters
- duration: type=Duration, range=[1s, 1h], description=Mandatory wait period
- reset_trigger: type=Enum, range={Success, Failure, Any}, description=What resets the cooldown
Preconditions
- Action executed
- Rate limit policy
Postconditions
- Ready state restored after delay
Failure modes
- Deadlock: Critical action needed during cooldown period, system stuck waiting.
Where this came from
—
Builds on
- Throttle references
Used by
- StateLock composes_with
Identity
- Ref:
Cooldown#c288 - Hash: sema:Cooldown#mh:SHA-256:c288d88055cb0aae80c4b67ed62afcd3ebcc5de18749fc6efb15e9f8c529b9df
- Library: bootstrap 0.11.0, root a6a3d1ff0f98
- License: Not stated; check the repository