v0.4.0
- Breaking change: There are a number of small breaking changes in the job list API using
JobList
/JobListTx
:- Now support querying jobs by a list of Job Kinds and States. Also allows for filtering by specific timestamp values. Thank you Jos Kraaijeveld (@thatjos)! 🙏🏻 PR #236.
- Job listing now defaults to ordering by job ID (
JobListOrderByID
) instead of a job timestamp dependent on on requested job state. The previous ordering behavior is still available withNewJobListParams().OrderBy(JobListOrderByTime, SortOrderAsc)
. PR #307. - The function
JobListCursorFromJob
no longer needs a sort order parameter. Instead, sort order is determined based on the job list parameters that the cursor is subsequently used with. PR #307.
- Breaking change: Client
Insert
andInsertTx
functions now return aJobInsertResult
struct instead of aJobRow
. This allows the result to include metadata like the newUniqueSkippedAsDuplicate
property, so callers can tell whether an inserted job was skipped due to unique constraint. PR #292. - Breaking change: Client
InsertMany
andInsertManyTx
now return number of jobs inserted asint
instead ofint64
. This change was made to make the type in use a little more idiomatic. PR #293. - Breaking change:
river.JobState*
type aliases have been removed. All job state constants should be accessed throughrivertype.JobState*
instead. PR #300.
See also the 0.4.0 release blog post with code samples and rationale behind various changes.