Added
- Added
HookPeriodicJobsStartthat can be used to run custom logic when a periodic job enqueuer starts up on a new leader. PR #1084. - Added
Client.Notify().RequestResignandClient.Notify().RequestResignTxfunctions allowing any client to request that the current leader resign. PR #1085. - Basic stuck detection after a job's exceeded its timeout and still not returned after the executor's initiated context cancellation and waited a short margin for the cancellation to take effect. PR #1097.
- Added
Client.JobUpdatewhich can be used to persist job output partway through a running work function instead of having to wait until the job is completed. PR #1098.
Changed
- Add a little more error flavor for when encountering a deadline exceeded error on leadership election suggesting that the user may want to try increasing their database pool size. PR #1101.
- When migrating without an outer transaction, insert/delete version rows immediately after executing migration SQL so that in case a later migration fails, the migrator knows where to restart from. PR #1106.