app/jobs/bobot/deliver_job.rb in bobot-3.0.1 vs app/jobs/bobot/deliver_job.rb in bobot-3.0.2
- old
+ new
@@ -1,7 +1,14 @@
module Bobot
class DeliverJob < ApplicationJob
- queue_as :default
+
+ queue_as do
+ if Bobot.config.commander_queue_name.present?
+ Bobot.config.commander_queue_name
+ else
+ :default
+ end
+ end
def perform(target_facebook_uid:, access_token:, payload_template:)
Bobot::Commander.deliver(
body: {
recipient: { id: target_facebook_uid },