Exception: Anakin::JobTimeoutError
- Defined in:
- lib/anakin/errors.rb
Overview
Polling budget exhausted before the job reached a terminal status.
Instance Attribute Summary collapse
-
#elapsed ⇒ Object
readonly
Returns the value of attribute elapsed.
-
#job_id ⇒ Object
readonly
Returns the value of attribute job_id.
Attributes inherited from Error
Instance Method Summary collapse
-
#initialize(message, job_id: nil, elapsed: 0) ⇒ JobTimeoutError
constructor
A new instance of JobTimeoutError.
Constructor Details
#initialize(message, job_id: nil, elapsed: 0) ⇒ JobTimeoutError
Returns a new instance of JobTimeoutError.
57 58 59 60 61 |
# File 'lib/anakin/errors.rb', line 57 def initialize(, job_id: nil, elapsed: 0) super() @job_id = job_id @elapsed = elapsed end |
Instance Attribute Details
#elapsed ⇒ Object (readonly)
Returns the value of attribute elapsed.
55 56 57 |
# File 'lib/anakin/errors.rb', line 55 def elapsed @elapsed end |
#job_id ⇒ Object (readonly)
Returns the value of attribute job_id.
55 56 57 |
# File 'lib/anakin/errors.rb', line 55 def job_id @job_id end |