class BatchKit::Sequence::Run

Captures details of an execution of a task.

Attributes

sequence_run_id[RW]

@return [Fixnum] An integer identifier that uniquely identifies

this task run.

Public Class Methods

new(seq_def, job_object, *run_args) click to toggle source

Create a new sequence run.

@param task_def [Sequence::Definition] The Sequence::Definition to

which this run relates.

@param job_object [Object] The job object instance from which the

sequence is being executed.

@param run_args [Array<Object>] An array of the argument values

passed to the sequence method.
Calls superclass method BatchKit::Runnable::new
# File lib/batch-kit/framework/sequence_run.rb, line 24
def initialize(seq_def, job_object, *run_args)
    raise ArgumentError, "seq_def not a Sequence::Definition" unless seq_def.is_a?(Sequence::Definition)
    super(seq_def, job_object, run_args)
end

Public Instance Methods

persist?() click to toggle source

@return [Boolean] True if this sequence run should be persisted in

any persistence layer.
# File lib/batch-kit/framework/sequence_run.rb, line 32
def persist?
    !definition.do_not_track
end
to_s() click to toggle source

@return [String] A short representation of this Sequence::Run.

# File lib/batch-kit/framework/sequence_run.rb, line 38
def to_s
    "<BatchKit::Sequence::Run label='#{label}'>"
end