Class: DurableFlow::Interrupt

Inherits:
ActiveJob::Continuation::Interrupt
  • Object
show all
Defined in:
lib/durable_flow/errors.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(reason:, resume_options:, status:) ⇒ Interrupt

Returns a new instance of Interrupt.



49
50
51
52
53
54
# File 'lib/durable_flow/errors.rb', line 49

def initialize(reason:, resume_options:, status:)
  @reason = reason
  @resume_options = resume_options
  @status = status
  super("Interrupted workflow (#{reason})")
end

Instance Attribute Details

#reasonObject (readonly)

Returns the value of attribute reason.



47
48
49
# File 'lib/durable_flow/errors.rb', line 47

def reason
  @reason
end

#resume_optionsObject (readonly)

Returns the value of attribute resume_options.



47
48
49
# File 'lib/durable_flow/errors.rb', line 47

def resume_options
  @resume_options
end

#statusObject (readonly)

Returns the value of attribute status.



47
48
49
# File 'lib/durable_flow/errors.rb', line 47

def status
  @status
end