Sha256: 0ef19693c8a836f7c0729e269e41f8511bf86b67e2dfcf9b44b391fd9ab87eb3

Contents?: true

Size: 292 Bytes

Versions: 36

Compression:

Stored size: 292 Bytes

Contents

module Bobot
  class CommanderJob < ApplicationJob
    queue_as do
      if Bobot.config.commander_queue_name.present?
        Bobot.config.commander_queue_name
      else
        :default
      end
    end

    def perform(payload:)
      Bobot::Commander.trigger(payload)
    end
  end
end

Version data entries

36 entries across 36 versions & 1 rubygems

Version Path
bobot-5.0.4 app/jobs/bobot/commander_job.rb
bobot-5.0.3 app/jobs/bobot/commander_job.rb
bobot-5.0.2 app/jobs/bobot/commander_job.rb
bobot-5.0.1 app/jobs/bobot/commander_job.rb
bobot-5.0.0 app/jobs/bobot/commander_job.rb
bobot-4.15.0 app/jobs/bobot/commander_job.rb
bobot-4.14.0 app/jobs/bobot/commander_job.rb
bobot-4.13.1 app/jobs/bobot/commander_job.rb
bobot-4.13.0 app/jobs/bobot/commander_job.rb
bobot-4.11.0 app/jobs/bobot/commander_job.rb
bobot-4.10.0 app/jobs/bobot/commander_job.rb
bobot-4.9.0 app/jobs/bobot/commander_job.rb
bobot-4.8.0 app/jobs/bobot/commander_job.rb
bobot-4.7.0 app/jobs/bobot/commander_job.rb
bobot-4.6.0 app/jobs/bobot/commander_job.rb
bobot-4.5.0 app/jobs/bobot/commander_job.rb
bobot-4.4.1 app/jobs/bobot/commander_job.rb
bobot-4.4.0 app/jobs/bobot/commander_job.rb
bobot-4.3.1 app/jobs/bobot/commander_job.rb
bobot-4.3.0 app/jobs/bobot/commander_job.rb