Exception: DurableHuggingfaceHub::InferenceTimeoutError
- Inherits:
-
DurableHuggingfaceHubError
- Object
- StandardError
- DurableHuggingfaceHubError
- DurableHuggingfaceHub::InferenceTimeoutError
- Defined in:
- lib/durable_huggingface_hub/errors.rb
Overview
Error raised when an inference request times out.
Instance Attribute Summary collapse
-
#task ⇒ String
readonly
The task that timed out.
-
#timeout ⇒ Integer
readonly
Timeout duration in seconds.
Instance Method Summary collapse
-
#initialize(task: nil, timeout: nil, message: nil) ⇒ InferenceTimeoutError
constructor
Creates a new inference timeout error.
Constructor Details
#initialize(task: nil, timeout: nil, message: nil) ⇒ InferenceTimeoutError
Creates a new inference timeout error.
341 342 343 344 345 346 |
# File 'lib/durable_huggingface_hub/errors.rb', line 341 def initialize(task: nil, timeout: nil, message: nil) @task = task @timeout = timeout ||= super() end |
Instance Attribute Details
#task ⇒ String (readonly)
Returns The task that timed out.
331 332 333 |
# File 'lib/durable_huggingface_hub/errors.rb', line 331 def task @task end |
#timeout ⇒ Integer (readonly)
Returns Timeout duration in seconds.
334 335 336 |
# File 'lib/durable_huggingface_hub/errors.rb', line 334 def timeout @timeout end |