From eca03b245aec423054cdb1e3247251de3cc040a4 Mon Sep 17 00:00:00 2001 From: hsato23 <129734919+hsato23@users.noreply.github.com> Date: Wed, 23 Oct 2024 09:52:03 +0900 Subject: [PATCH] =?UTF-8?q?enqueue=5Fat=5Fwith=5Fqueue=E5=86=85=E3=81=A7en?= =?UTF-8?q?queue=E3=81=A7=E3=81=AA=E3=81=8Fenqueue=5Fto=E3=81=A7=E3=82=A8?= =?UTF-8?q?=E3=83=B3=E3=82=AD=E3=83=A5=E3=83=BC?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- lib/resque_unit_without_mock/scheduler.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/resque_unit_without_mock/scheduler.rb b/lib/resque_unit_without_mock/scheduler.rb index 459f212..b2076c4 100644 --- a/lib/resque_unit_without_mock/scheduler.rb +++ b/lib/resque_unit_without_mock/scheduler.rb @@ -17,7 +17,7 @@ def enqueue_at_with_queue(queue, timestamp, klass, *args) @@enqueue_ats ||= {} @@enqueue_ats[queue] ||= [] @@enqueue_ats[queue] << { timestamp: timestamp, klass: klass, args: args } - Resque.enqueue(klass, *args) + Resque.enqueue_to(queue, klass, *args) end def enqueue_ats(queue)