Module: Amigo::DurableJob::ClassMethods

Defined in:
lib/amigo/durable_job.rb

Instance Method Summary collapse

Instance Method Details

#heartbeat_extensionInteger, ActiveSupport::Duration

Seconds or duration where, if the job is not completed, it should be re-processed. Set this to short for short jobs, and long for long jobs, since they will be re-enqueued if they take longer than this heartbeat_extension. You can also use Amigo::DurableJob.heartbeat (or heartbeat!) to push the heartbeat_extension time further out.

Returns:

  • (Integer, ActiveSupport::Duration)


376
377
378
# File 'lib/amigo/durable_job.rb', line 376

def heartbeat_extension
  return 5.minutes
end