v0.9.0
Added
Config.TestOnly
has been added. It disables various features in the River client like staggered maintenance service start that are useful in production, but may be somewhat harmful in tests because they make start/stop slower. PR #414.
Changed
ErrorHandler
. As before, we try never to make breaking changes, but this one was deemed quite important because ErrorHandler
was fundamentally lacking important functionality.
-
Breaking change: Add stack trace to
ErrorHandler.HandlePanicFunc
. Fixing code only requires adding a newtrace string
argument toHandlePanicFunc
. PR #423.# before HandlePanic(ctx context.Context, job *rivertype.JobRow, panicVal any) *ErrorHandlerResult # after HandlePanic(ctx context.Context, job *rivertype.JobRow, panicVal any, trace string) *ErrorHandlerResult
Fixed
- Pausing or resuming a queue that was already paused or not paused respectively no longer returns
rivertype.ErrNotFound
. The same goes for pausing or resuming using the all queues string (*
) when no queues are in the database (previously that also returnedrivertype.ErrNotFound
). PR #408. - Fix a bug where periodic job constructors were only called once when adding the periodic job rather than being invoked every time the periodic job is scheduled. PR #420.