| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
Sorry, something went wrong.
Wake the renewer through an explicit shutdown channel and stop its ticker when it exits. Serialize renewal with unlock and reject stale acquisitions to prevent renewal after release.
| Back | FazBrowse Home | New Git URL |
Problem
A job acquires a 20-second Redis lease at 0 seconds and finishes at 1 second.
The renewal goroutine is already waiting for the first tick at about 6.7 seconds.
Previously, Unlock() stopped the ticker without closing its channel, leaving that goroutine blocked forever.
The explicit shutdown signal now wakes it so it can exit.
Summary