Exception: ActiveJob::QueueAdapters::ActiveElasticJobAdapter::DelayTooLong

Inherits:
RangeError
  • Object
show all
Defined in:
lib/active_job/queue_adapters/active_elastic_job_adapter.rb

Overview

Raised when the delay is longer than the MAX_DELAY_IN_MINUTES

Instance Method Summary collapse

Constructor Details

#initializeDelayTooLong

Returns a new instance of DelayTooLong.



81
82
83
84
85
86
87
88
# File 'lib/active_job/queue_adapters/active_elastic_job_adapter.rb', line 81

def initialize()
  super(<<-MSG)
    Jobs cannot be scheduled more than #{MAX_DELAY_IN_MINUTES} minutes
    into the future.
    See http://docs.aws.amazon.com/AWSSimpleQueueService/latest/APIReference/API_SendMessage.html
    for further details!
  MSG
end