tardis.resources.dronestates module

class tardis.resources.dronestates.AvailableState[source]

Bases: tardis.interfaces.state.State

processing_pipeline = [<function check_demand>, <function check_minimum_lifetime>, <function resource_status>, <function batchsystem_machine_status>]
async classmethod run(drone: Drone)[source]
transition = {<ResourceStatus.Running: 2>: <function AvailableState.<lambda>>, <ResourceStatus.Booting: 1>: <function AvailableState.<lambda>>, <ResourceStatus.Deleted: 4>: <function AvailableState.<lambda>>, <ResourceStatus.Stopped: 3>: <function AvailableState.<lambda>>, <ResourceStatus.Error: 5>: <function AvailableState.<lambda>>}
class tardis.resources.dronestates.BootingState[source]

Bases: tardis.interfaces.state.State

processing_pipeline = [<function check_demand>, <function resource_status>]
async classmethod run(drone: Drone)[source]
transition = {<ResourceStatus.Booting: 1>: <function BootingState.<lambda>>, <ResourceStatus.Running: 2>: <function BootingState.<lambda>>, <ResourceStatus.Deleted: 4>: <function BootingState.<lambda>>, <ResourceStatus.Stopped: 3>: <function BootingState.<lambda>>, <ResourceStatus.Error: 5>: <function BootingState.<lambda>>}
class tardis.resources.dronestates.CleanupState[source]

Bases: tardis.interfaces.state.State

processing_pipeline = [<function resource_status>]
async classmethod run(drone: Drone)[source]
transition = {<ResourceStatus.Booting: 1>: <function CleanupState.<lambda>>, <ResourceStatus.Running: 2>: <function CleanupState.<lambda>>, <ResourceStatus.Stopped: 3>: <function CleanupState.<lambda>>, <ResourceStatus.Deleted: 4>: <function CleanupState.<lambda>>, <ResourceStatus.Error: 5>: <function CleanupState.<lambda>>}
class tardis.resources.dronestates.DisintegrateState[source]

Bases: tardis.interfaces.state.State

async classmethod run(drone: Drone)[source]
class tardis.resources.dronestates.DownState[source]

Bases: tardis.interfaces.state.State

async classmethod run(drone: Drone)[source]
class tardis.resources.dronestates.DrainState[source]

Bases: tardis.interfaces.state.State

async classmethod run(drone: Drone)[source]
class tardis.resources.dronestates.DrainingState[source]

Bases: tardis.interfaces.state.State

processing_pipeline = [<function resource_status>, <function batchsystem_machine_status>]
async classmethod run(drone: Drone)[source]
transition = {<ResourceStatus.Running: 2>: <function DrainingState.<lambda>>, <ResourceStatus.Booting: 1>: <function DrainingState.<lambda>>, <ResourceStatus.Deleted: 4>: <function DrainingState.<lambda>>, <ResourceStatus.Stopped: 3>: <function DrainingState.<lambda>>, <ResourceStatus.Error: 5>: <function DrainingState.<lambda>>}
class tardis.resources.dronestates.IntegrateState[source]

Bases: tardis.interfaces.state.State

async classmethod run(drone: Drone)[source]
class tardis.resources.dronestates.IntegratingState[source]

Bases: tardis.interfaces.state.State

processing_pipeline = [<function resource_status>, <function batchsystem_machine_status>]
async classmethod run(drone: Drone)[source]
transition = {<ResourceStatus.Running: 2>: <function IntegratingState.<lambda>>, <ResourceStatus.Booting: 1>: <function IntegratingState.<lambda>>, <ResourceStatus.Deleted: 4>: <function IntegratingState.<lambda>>, <ResourceStatus.Stopped: 3>: <function IntegratingState.<lambda>>, <ResourceStatus.Error: 5>: <function IntegratingState.<lambda>>}
class tardis.resources.dronestates.RequestState[source]

Bases: tardis.interfaces.state.State

async classmethod run(drone: Drone)[source]
class tardis.resources.dronestates.ShutDownState[source]

Bases: tardis.interfaces.state.State

processing_pipeline = [<function resource_status>]
async classmethod run(drone: Drone)[source]
transition = {<ResourceStatus.Booting: 1>: <function ShutDownState.<lambda>>, <ResourceStatus.Running: 2>: <function ShutDownState.<lambda>>, <ResourceStatus.Stopped: 3>: <function ShutDownState.<lambda>>, <ResourceStatus.Deleted: 4>: <function ShutDownState.<lambda>>, <ResourceStatus.Error: 5>: <function ShutDownState.<lambda>>}
class tardis.resources.dronestates.ShuttingDownState[source]

Bases: tardis.interfaces.state.State

processing_pipeline = [<function resource_status>]
async classmethod run(drone: Drone)[source]
transition = {<ResourceStatus.Booting: 1>: <function ShuttingDownState.<lambda>>, <ResourceStatus.Running: 2>: <function ShuttingDownState.<lambda>>, <ResourceStatus.Stopped: 3>: <function ShuttingDownState.<lambda>>, <ResourceStatus.Deleted: 4>: <function ShuttingDownState.<lambda>>, <ResourceStatus.Error: 5>: <function ShuttingDownState.<lambda>>}
async tardis.resources.dronestates.batchsystem_machine_status(state_transition, drone: Drone, current_state: Type[tardis.interfaces.state.State])[source]
async tardis.resources.dronestates.check_demand(state_transition, drone: Drone, current_state: Type[tardis.interfaces.state.State])[source]
async tardis.resources.dronestates.check_minimum_lifetime(state_transition, drone: Drone, current_state: Type[tardis.interfaces.state.State])[source]
async tardis.resources.dronestates.resource_status(state_transition, drone: Drone, current_state: Type[tardis.interfaces.state.State])[source]