From 6065b9fa3a3f88a54390988fc08205a3817cb52b Mon Sep 17 00:00:00 2001 From: Brandur Date: Sun, 26 Nov 2023 08:26:05 -0800 Subject: [PATCH] Link up scheduled job docs from README and Godoc + changelog entry Small follow up to #70 in which we add a link to scheduled jobs from the features list in the README and Godoc (making it really easy to find by scanning in either place), along with a changelog entry for the new example. --- CHANGELOG.md | 6 ++++++ doc.go | 3 +++ docs/README.md | 3 +++ 3 files changed, 12 insertions(+) diff --git a/CHANGELOG.md b/CHANGELOG.md index 9742f17d..5e509918 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -7,6 +7,12 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0 ## [Unreleased] +## [0.0.10] - 2023-11-26 + +### Added + +- Added `Example_scheduledJob`, demonstrating how to schedule a job to be run in the future. + ## [0.0.9] - 2023-11-23 ### Fixed diff --git a/doc.go b/doc.go index 123da099..6db4bfed 100644 --- a/doc.go +++ b/doc.go @@ -114,6 +114,8 @@ See the [`InsertAndWork` example] for complete code. - [Periodic and cron jobs]. + - [Scheduled jobs] that run at their scheduled time in the future. + - [Snoozing jobs] from inside a work function. - [Subscriptions] to queue activity and statistics, providing easy hooks for @@ -139,6 +141,7 @@ See [developing River]. [Cancelling jobs]: https://riverqueue.com/docs/cancelling-jobs [Error and panic handling]: https://riverqueue.com/docs/error-handling [Periodic and cron jobs]: https://riverqueue.com/docs/periodic-jobs +[Scheduled jobs]: https://riverqueue.com/docs/scheduled-jobs [Snoozing jobs]: https://riverqueue.com/docs/snoozing-jobs [Subscriptions]: https://riverqueue.com/docs/subscriptions [Transactional job completion]: https://riverqueue.com/docs/transactional-job-completion diff --git a/docs/README.md b/docs/README.md index e5f7ca10..def69f5b 100644 --- a/docs/README.md +++ b/docs/README.md @@ -126,6 +126,8 @@ See the [`InsertAndWork` example] for complete code. - [Periodic and cron jobs]. + - [Scheduled jobs] that run at their scheduled time in the future. + - [Snoozing jobs] from inside a work function. - [Subscriptions] to queue activity and statistics, providing easy hooks for @@ -161,6 +163,7 @@ Thank you for driving the software ecosystem forward. [Cancelling jobs]: https://riverqueue.com/docs/cancelling-jobs [Error and panic handling]: https://riverqueue.com/docs/error-handling [Periodic and cron jobs]: https://riverqueue.com/docs/periodic-jobs +[Scheduled jobs]: https://riverqueue.com/docs/scheduled-jobs [Snoozing jobs]: https://riverqueue.com/docs/snoozing-jobs [Subscriptions]: https://riverqueue.com/docs/subscriptions [Transactional job completion]: https://riverqueue.com/docs/transactional-job-completion