Exception: LittleMonster::Core::JobNotFoundError
- Inherits:
-
StandardError
- Object
- StandardError
- LittleMonster::Core::JobNotFoundError
- Defined in:
- lib/little_monster/core/errors/job_not_found_error.rb
Instance Method Summary collapse
-
#initialize(job_id) ⇒ JobNotFoundError
constructor
A new instance of JobNotFoundError.
Constructor Details
#initialize(job_id) ⇒ JobNotFoundError
Returns a new instance of JobNotFoundError.
3 4 5 6 7 8 9 10 11 12 13 |
# File 'lib/little_monster/core/errors/job_not_found_error.rb', line 3 def initialize(job_id) params = { body: { status: 'error' } } LittleMonster::API.put "/jobs/#{job_id}", params, retries: LittleMonster.job_requests_retries, retry_wait: LittleMonster.job_requests_retry_wait, critical: true end |