From 8c712a2e0e3b532534dcaee5aa8d79c904b1dcb8 Mon Sep 17 00:00:00 2001 From: Fernando Freire Date: Mon, 2 Sep 2024 13:36:53 +1000 Subject: [PATCH] adds enqueue_after_transaction_commit? for rails 7.2 compatibility --- lib/lambdakiq/adapter.rb | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/lib/lambdakiq/adapter.rb b/lib/lambdakiq/adapter.rb index 6f20616..415ea9d 100644 --- a/lib/lambdakiq/adapter.rb +++ b/lib/lambdakiq/adapter.rb @@ -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)