You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Here, add functions for `Client.JobDeleteMany` which lets jobs be
deleted in batches. The main impetus for this is to give us a way of
implementing a "purge queue" function, which has been previously
requested by users, and which is generally just a good feature.
We copy the `JobList` API very closely and use almost all the same
implementation, with the caveat that I've removed some of the more
complex features that I don't think will be as necessary for deletion,
with the sorting features being the biggest one, but also arbitrary SQL
in `WHERE` queries. These can always be added in later because they're
purely additive to the API, but I'm hoping that we won't need them.
Copy file name to clipboardExpand all lines: CHANGELOG.md
+1Lines changed: 1 addition & 0 deletions
Original file line number
Diff line number
Diff line change
@@ -14,6 +14,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
14
14
### Added
15
15
16
16
- The project now tests against [libSQL](https://github.com/tursodatabase/libsql), a popular SQLite fork. It's used through the same `riversqlite` driver that SQLite uses. [PR #957](https://github.com/riverqueue/river/pull/957)
17
+
- Added `JobDeleteMany` operations that remove many jobs in a single operation according to input criteria. [PR #962](https://github.com/riverqueue/river/pull/962)
0 commit comments