riverqueue / river

Fast and reliable background jobs in Go
https://riverqueue.com
Mozilla Public License 2.0
3.34k stars 89 forks source link

Bump `WithinDuration` check up to two seconds #439

Closed brandur closed 2 months ago

brandur commented 2 months ago

This fixes an intermittent failure. It's a fairly rare one, but one that does appear on the order of ~dozens of test runs in GitHub Actions. I'd originally lumped this into #438, but since I'm likely to discard that pull request, breaking this change out separately since it's still useful.

Most of the other time comparisons in this file already use two seconds for WithinDuration instead of one, so the change also serves to make things a little more consistent.

brandur commented 2 months ago

ty!