Sha256: 61e89daeb2741f377444e0e20e4b6260750920978c2fe7c254507372acbb1d8c

Contents?: true

Size: 435 Bytes

Versions: 26

Compression:

Stored size: 435 Bytes

Contents

module Quebert
  module Controller
    # The most Controller. Doesn't even accept the queue as an argument because there's nothing
    # a job can do to be rescheduled, etc.
    class Base
      attr_reader :job
      
      def initialize(job)
        @job = job
      end
      
      def perform
        begin
          job.perform!
        rescue Job::Action
          # Nothing to do chief!
        end
      end
    end
  end
end

Version data entries

26 entries across 26 versions & 1 rubygems

Version Path
quebert-3.3.0 lib/quebert/controller/base.rb
quebert-3.2.1 lib/quebert/controller/base.rb
quebert-3.2.0 lib/quebert/controller/base.rb
quebert-3.0.3 lib/quebert/controller/base.rb
quebert-3.0.2 lib/quebert/controller/base.rb
quebert-3.0.1 lib/quebert/controller/base.rb
quebert-3.0.0 lib/quebert/controller/base.rb
quebert-2.0.4 lib/quebert/controller/base.rb
quebert-2.0.3 lib/quebert/controller/base.rb
quebert-2.0.2 lib/quebert/controller/base.rb
quebert-2.0.1 lib/quebert/controller/base.rb
quebert-2.0.0 lib/quebert/controller/base.rb
quebert-1.12.0 lib/quebert/controller/base.rb
quebert-1.11.0 lib/quebert/controller/base.rb
quebert-1.0.9 lib/quebert/controller/base.rb
quebert-1.0.8 lib/quebert/controller/base.rb
quebert-1.0.7 lib/quebert/controller/base.rb
quebert-1.0.6 lib/quebert/controller/base.rb
quebert-1.0.5 lib/quebert/controller/base.rb
quebert-1.0.4 lib/quebert/controller/base.rb