Sha256: a93c1618392e1145ca6051b18c1214ff79b4c06b7fb8d980720e565c2f36ee3f

Contents?: true

Size: 439 Bytes

Versions: 29

Compression:

Stored size: 439 Bytes

Contents

# frozen_string_literal: true

# Represents an action to set a new API response (which will be stored onto an
# idempotency key). One  possible option for a return from an #atomic_phase
# block.
module AcidicJob
  class FinishedPoint
    def call(run:)
      # Skip AR callbacks as there are none on the model
      run.update_columns(
        locked_at: nil,
        recovery_point: Run::FINISHED_RECOVERY_POINT
      )
    end
  end
end

Version data entries

29 entries across 29 versions & 1 rubygems

Version Path
acidic_job-1.0.0.pre29 lib/acidic_job/finished_point.rb
acidic_job-1.0.0.pre28 lib/acidic_job/finished_point.rb
acidic_job-1.0.0.pre27 lib/acidic_job/finished_point.rb
acidic_job-1.0.0.pre26 lib/acidic_job/finished_point.rb
acidic_job-1.0.0.pre25 lib/acidic_job/finished_point.rb
acidic_job-1.0.0.pre24 lib/acidic_job/finished_point.rb
acidic_job-1.0.0.pre23 lib/acidic_job/finished_point.rb
acidic_job-1.0.0.pre22 lib/acidic_job/finished_point.rb
acidic_job-1.0.0.pre21 lib/acidic_job/finished_point.rb
acidic_job-1.0.0.pre20 lib/acidic_job/finished_point.rb
acidic_job-1.0.0.pre19 lib/acidic_job/finished_point.rb
acidic_job-1.0.0.pre18 lib/acidic_job/finished_point.rb
acidic_job-1.0.0.pre17 lib/acidic_job/finished_point.rb
acidic_job-1.0.0.pre16 lib/acidic_job/finished_point.rb
acidic_job-1.0.0.pre15 lib/acidic_job/finished_point.rb
acidic_job-1.0.0.pre14 lib/acidic_job/finished_point.rb
acidic_job-1.0.0.pre13 lib/acidic_job/finished_point.rb
acidic_job-1.0.0.pre12 lib/acidic_job/finished_point.rb
acidic_job-1.0.0.pre11 lib/acidic_job/finished_point.rb
acidic_job-1.0.0.pre10 lib/acidic_job/finished_point.rb