You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Drain queued Web Push jobs on shutdown instead of cancelling them #73
Hub.CloseContext cancels the push context first and then waits for the workers, so the 5 seconds allowed in cmd/fmsg-webapi/main.go bound how long workers take to notice the cancel; they are not a drain. Web Push notifications for messages committed in the last moments before shutdown are dropped, and nothing sends them later.
This is not a regression: before #71 the pushes were plain goroutines and were lost when the process exited.
If a drain is wanted: stop accepting jobs and close the queue, wait for the workers up to the deadline, and only cancel the push context when the deadline passes.
Activity