Skip to content

Navigation Menu

Sign in
Sign up

Retrieving results #500

Answered by travisby
aphilas asked this question in Q&A
Discussion options

I might be missing something obvious here, how can I retrieve the results of a job?

The equivalent in Oban should be fetch_recorded/1.

You must be logged in to vote

On the subject,

RecordOutput has existed since v0.18.0 - https://pkg.go.dev/github.com/riverqueue/river#RecordOutput

and JobUpdate since v0.29.0 - https://pkg.go.dev/github.com/riverqueue/river#Client.JobUpdate

I think this covers what I've been looking for -- a way to look up at some past information on a completed job!

Replies: 2 comments 1 reply

Comment options

There’s no feature for recording job "output" as of now. I’ve definitely been thinking about how to add it though. Any thoughts on how the API for that might look? Also how large is the payload you’re looking to save?

You must be logged in to vote
1 reply
Comment options

Unfortunately I haven't thought about how it should work/look like.

Also how large is the payload you’re looking to save?

Write now it's anything from a few hundred bytes to a few kilobytes of json, but it may grow larger depending on the input.

Comment options

On the subject,

RecordOutput has existed since v0.18.0 - https://pkg.go.dev/github.com/riverqueue/river#RecordOutput

and JobUpdate since v0.29.0 - https://pkg.go.dev/github.com/riverqueue/river#Client.JobUpdate

I think this covers what I've been looking for -- a way to look up at some past information on a completed job!

You must be logged in to vote
0 replies
Answer selected by aphilas
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet

AltStyle によって変換されたページ (->オリジナル) /