The sushy.resources.task_monitor
Module¶
-
class
sushy.resources.task_monitor.
TaskMonitor
(connector, path='', redfish_version=None)¶ Bases:
sushy.resources.base.ResourceBase
-
property
in_progress
¶ Checks the status of the async task
- Returns
True if the async task is still in progress, False otherwise
-
property
location_header
¶ The Location header returned from the GET on the Task Monitor
- Returns
The Location header (an absolute URL)
-
property
response
¶ The response from the last TaskMonitor in_progress check
- Returns
The requests response object or None
-
property
retry_after
¶ Time the client should wait before querying the task status
- Returns
The Retry-After time in datetime format
-
set_retry_after
(value)¶ Set the time the client should wait before querying the task status
- Parameters
value – The value of the Retry-After header, which can be the number of seconds to wait or an HTTP-date string as defined by RFC 7231
- Returns
The TaskMonitor object
-
property
sleep_for
¶ Seconds the client should wait before querying the operation status
- Returns
The number of seconds to wait
-
property