Exception: LittleMonster::Core::JobNotFoundError

Inherits:
StandardError
  • Object
show all
Defined in:
lib/little_monster/core/errors/job_not_found_error.rb

Instance Method Summary collapse

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