Skip to main content

clear_cooldown

Function clear_cooldown 

Source
pub async fn clear_cooldown(key: &str, store: &Arc<TaskStore>)
Expand description

Clear a specific cooldown by key, or all cooldowns when key == "*".

Removes from the in-memory map, writes a past timestamp to KV, and resets the corresponding failure_count: entries so the next failure starts backoff from the base duration.