Skip to content

Commit

Permalink
Get most recent job by active_job_id
Browse files Browse the repository at this point in the history
  • Loading branch information
andbar authored and rosa committed Feb 26, 2024
1 parent 609c895 commit 66c408e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/active_job/queue_adapters/solid_queue_ext.rb
Original file line number Diff line number Diff line change
Expand Up @@ -169,7 +169,7 @@ def count
end

def find_job(active_job_id)
if job = SolidQueue::Job.find_by(active_job_id: active_job_id)
if job = SolidQueue::Job.where(active_job_id: active_job_id).order(:id).last
job if matches_relation_filters?(job)
end
end
Expand Down

0 comments on commit 66c408e

Please sign in to comment.