Module: Amigo::SemaphoreBackoffJob::InstanceMethods
- Defined in:
- lib/amigo/semaphore_backoff_job.rb
Instance Method Summary collapse
- #semaphore_backoff ⇒ Object
- #semaphore_expiry ⇒ Object
- #semaphore_key ⇒ Object
- #semaphore_size ⇒ Object
Instance Method Details
#semaphore_backoff ⇒ Object
84 85 86 |
# File 'lib/amigo/semaphore_backoff_job.rb', line 84 def semaphore_backoff return 10 + (rand * 10) end |
#semaphore_expiry ⇒ Object
88 89 90 |
# File 'lib/amigo/semaphore_backoff_job.rb', line 88 def semaphore_expiry return 30 end |
#semaphore_key ⇒ Object
76 77 78 |
# File 'lib/amigo/semaphore_backoff_job.rb', line 76 def semaphore_key raise NotImplementedError, "must be implemented on worker" end |
#semaphore_size ⇒ Object
80 81 82 |
# File 'lib/amigo/semaphore_backoff_job.rb', line 80 def semaphore_size raise NotImplementedError, "must be implemented on worker" end |