sushy.resources.taskservice package

Submodules

sushy.resources.taskservice.mappings module

sushy.resources.taskservice.task module

class sushy.resources.taskservice.task.Task(connector, identity, redfish_version=None, registries=None, json_doc=None)

Bases: sushy.resources.base.ResourceBase

description = <sushy.resources.base.Field object>

The Task description

end_time = <sushy.resources.base.Field object>

End time of the Task

identity = <sushy.resources.base.Field object>

The Task identity

property is_processing

Indicates if the Task is processing

messages = <sushy.resources.base.MessageListField object>

List of MessageListField with messages from the Task

name = <sushy.resources.base.Field object>

The Task name

parse_messages()

Parses the messages

percent_complete = <sushy.resources.base.Field object>

Percentage complete of the Task

start_time = <sushy.resources.base.Field object>

Start time of the Task

task_monitor = <sushy.resources.base.Field object>

An opaque URL that the client can use to monitor an asynchronous operation

task_state = <sushy.resources.base.MappedField object>

The Task state

task_status = <sushy.resources.base.MappedField object>

The Task status

sushy.resources.taskservice.taskmonitor module

class sushy.resources.taskservice.taskmonitor.TaskMonitor(connector, task_monitor, redfish_version=None, registries=None, field_data=None)

Bases: object

property cancellable

The amount of time to sleep before retrying

Returns

A Boolean indicating if the Task is cancellable.

get_task()
property is_processing

Indicates if the task is still processing

Returns

A boolean indicating if the task is still processing.

refresh()

Refresh the Task

Freshly retrieves/fetches the Task. :raises: ResourceNotFoundError :raises: ConnectionError :raises: HTTPError

property retry_after

The amount of time to sleep before retrying

Returns

The amount of time in seconds to wait before calling is_processing.

property task

The executing task

Returns

The Task being executed.

property task_monitor

The TaskMonitor URI

Returns

The TaskMonitor URI.

Module contents