Added
- The River client now supports "poll only" mode with
Config.PollOnly
which makes it avoid issuingLISTEN
statements to wait for new events like a leadership resignation or new job available. The program instead polls periodically to look for changes. A leader resigning or a new job being available will be noticed less quickly, butPollOnly
potentially makes River operable on systems without listen/notify support, like PgBouncer operating in transaction pooling mode. PR #281. - Added
rivertype.JobStates()
that returns the full list of possible job states. PR #297.