Exception: MaintenanceTasks::Runner::EnqueuingError

Inherits:
StandardError
  • Object
show all
Defined in:
app/models/maintenance_tasks/runner.rb

Overview

Exception raised when a Task Job couldn’t be enqueued.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(run) ⇒ EnqueuingError

Initializes a Enqueuing Error.

Parameters:

  • run (Run)

    the Run which failed to be enqueued.



14
15
16
17
# File 'app/models/maintenance_tasks/runner.rb', line 14

def initialize(run)
  super("The job to perform #{run.task_name} could not be enqueued")
  @run = run
end

Instance Attribute Details

#runObject (readonly)

Returns the value of attribute run.



19
20
21
# File 'app/models/maintenance_tasks/runner.rb', line 19

def run
  @run
end