Skip to content

Commit

Permalink
Merge pull request #35 from liveheats/main
Browse files Browse the repository at this point in the history
adds enqueue_after_transaction_commit? for rails 7.2 compatibility
  • Loading branch information
metaskills authored Sep 3, 2024
2 parents dbcbdf2 + 8c712a2 commit 979e56b
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions lib/lambdakiq/adapter.rb
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,10 @@ def enqueue_at(job, timestamp)
enqueue job, delay_seconds: delay_seconds(timestamp)
end

def enqueue_after_transaction_commit?
true
end

private

def delay_seconds(timestamp)
Expand Down

0 comments on commit 979e56b

Please sign in to comment.