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-4.2.0 app/jobs/bobot/commander_job.rb
bobot-4.1.0 app/jobs/bobot/commander_job.rb
bobot-4.0.0 app/jobs/bobot/commander_job.rb
bobot-3.7.9 app/jobs/bobot/commander_job.rb
bobot-3.7.8 app/jobs/bobot/commander_job.rb
bobot-3.7.6 app/jobs/bobot/commander_job.rb
bobot-3.7.3 app/jobs/bobot/commander_job.rb
bobot-3.7.2 app/jobs/bobot/commander_job.rb
bobot-3.6.3 app/jobs/bobot/commander_job.rb
bobot-3.6.0 app/jobs/bobot/commander_job.rb
bobot-3.5.2 app/jobs/bobot/commander_job.rb
bobot-3.5.1 app/jobs/bobot/commander_job.rb
bobot-3.5.0 app/jobs/bobot/commander_job.rb
bobot-3.0.7 app/jobs/bobot/commander_job.rb
bobot-3.0.6 app/jobs/bobot/commander_job.rb
bobot-3.0.5 app/jobs/bobot/commander_job.rb