Skip to content

Know in the batch-finished-callback which exact jobs in the batch failed #1187

Answered by bensheldon
amo13 asked this question in Q&A
Discussion options

You must be logged in to vote

There isn't a public public api for job records, but it's simple enough to grab the Active Record models directly:

jobs = GoodJob::Job.discarded.where(batch_id: batch.id)

I wish that Active Job itself had a 1st party interface for presenting job status, but it does not.

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@amo13
Comment options

Answer selected by amo13
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants