zlacker

[return to "River: A fast, robust job queue for Go and Postgres"]
1. JoshGl+cA[view] [source] 2023-11-20 18:17:38
>>bo0tzz+(OP)
I didn't really see this feature, but I think another good one would be a way to schedule a future job that is not periodic. ie: "schedule job in 1 hr" to where it's either not enqueued or not available to be consumed until (at least) the schedule time.
◧◩
2. bgentr+S41[view] [source] 2023-11-20 20:10:09
>>JoshGl+cA
You've found an underdocumented feature, but in fact River does already do what you're asking for! Check out `ScheduledAt` on the `InsertOpts`: https://pkg.go.dev/github.com/riverqueue/river#InsertOpts

I'll try to work this into the higher level docs website later today with an example :)

[go to top]