Sha256: fcec03bb27cc14e24369cbb9fae346048f7732f5b469198c486994cbbac0dbe9

Contents?: true

Size: 357 Bytes

Versions: 7

Compression:

Stored size: 357 Bytes

Contents

Application.load 'lib/smartkiosk/sidekiq'

module Orders
  class ReloadWorker
    include Sidekiq::Worker

    sidekiq_options :queue => :orders

    def perform(order_id)
      StartupWorker.perform_async self.class.name, :finish, [order_id]
      Terminal.reload
    end

    def self.finish(order_id)
      Order.find(order_id).complete
    end
  end
end

Version data entries

7 entries across 7 versions & 1 rubygems

Version Path
smartkiosk-client-0.0.10 app/workers/orders/reload_worker.rb
smartkiosk-client-0.0.9 app/workers/orders/reload_worker.rb
smartkiosk-client-0.0.8 app/workers/orders/reload_worker.rb
smartkiosk-client-0.0.7 app/workers/orders/reload_worker.rb
smartkiosk-client-0.0.6 app/workers/orders/reload_worker.rb
smartkiosk-client-0.0.5 app/workers/orders/reload_worker.rb
smartkiosk-client-0.0.4 app/workers/orders/reload_worker.rb