Module: Amigo::SemaphoreBackoffJob::InstanceMethods

Defined in:
lib/amigo/semaphore_backoff_job.rb

Instance Method Summary collapse

Instance Method Details

#semaphore_backoffObject



84
85
86
# File 'lib/amigo/semaphore_backoff_job.rb', line 84

def semaphore_backoff
  return 10 + (rand * 10)
end

#semaphore_expiryObject



88
89
90
# File 'lib/amigo/semaphore_backoff_job.rb', line 88

def semaphore_expiry
  return 30
end

#semaphore_keyObject

Raises:

  • (NotImplementedError)


76
77
78
# File 'lib/amigo/semaphore_backoff_job.rb', line 76

def semaphore_key
  raise NotImplementedError, "must be implemented on worker"
end

#semaphore_sizeObject

Raises:

  • (NotImplementedError)


80
81
82
# File 'lib/amigo/semaphore_backoff_job.rb', line 80

def semaphore_size
  raise NotImplementedError, "must be implemented on worker"
end