Sha256: 52e70227d9324d27a92dd89c87f7a228fc8ee2a73f1fc502966b84b84c70112d

Contents?: true

Size: 408 Bytes

Versions: 9

Compression:

Stored size: 408 Bytes

Contents

require "active_support/concern"

module RocketJob
  module Plugins
    # @deprecated
    module Restart
      extend ActiveSupport::Concern

      included do
        after_abort :create_restart!
        after_complete :create_restart!
        after_fail :rocket_job_restart_abort
      end

      private

      def rocket_job_restart_abort
        new_record? ? abort : abort!
      end
    end
  end
end

Version data entries

9 entries across 9 versions & 1 rubygems

Version Path
rocketjob-6.3.1 lib/rocket_job/plugins/restart.rb
rocketjob-6.3.0 lib/rocket_job/plugins/restart.rb
rocketjob-6.2.0 lib/rocket_job/plugins/restart.rb
rocketjob-6.1.1 lib/rocket_job/plugins/restart.rb
rocketjob-6.1.0 lib/rocket_job/plugins/restart.rb
rocketjob-6.0.3 lib/rocket_job/plugins/restart.rb
rocketjob-6.0.2 lib/rocket_job/plugins/restart.rb
rocketjob-6.0.1 lib/rocket_job/plugins/restart.rb
rocketjob-6.0.0 lib/rocket_job/plugins/restart.rb