riverqueue / river

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

Derive all internal contexts from Client context #514

Closed bgentry closed 1 month ago

bgentry commented 1 month ago

We were previously using context.Background() in some situations to avoid cancellation of things that really shouldn't be cancelled by the user context cancellation. However, we can now do that with context.WithoutCancel instead in order to preserve context values without any cancellation or deadline.

Fixes #512.