Status

class qarnot.status.Status(json)[source]

Bases: object

The status object of the running pools and tasks.

  • To retrieve the status of a pool, use:

    >>> my_pool.status
    
  • To retrieve the status of a task, use:

    >>> my_task.status
    

Note

Read-only class

__init__(json)[source]
download_progress
Type

float

Resources download progress to the instances.

execution_progress
Type

float

Task execution progress.

upload_progress
Type

float

Task results upload progress to the API.

instance_count
Type

int

Number of running instances.

download_time
Type

str

Resources download time to the instances.

download_time_sec
Type

float

Resources download time to the instances in seconds.

environment_time
Type

str

Environment time to the instances.

environment_time_sec
Type

float

Environment time to the instances in seconds.

execution_time
Type

str

Task execution time.

execution_time_sec
Type

float

Task execution time in seconds.

upload_time
Type

str

Task results upload time to the API.

upload_time_sec
Type

float

Task results upload time to the API in seconds.

wall_time
Type

str

Wall time of the task.

wall_time_sec
Type

float

Wall time of the task in seconds.

succeeded_range
Type

str

Successful instances range.

executed_range
Type

str

Executed instances range.

failed_range
Type

str

Failed instances range.

last_update_timestamp
Type

str

Last update time (UTC).

execution_time_by_cpu_model
Type

str

Execution time by cpu.

execution_time_ghz_by_cpu_model
Type

str

Execution time ghz by cpu.

running_instances_info
Type

RunningInstancesInfo

Running instances information.

class qarnot.status.RunningInstancesInfo(json)[source]

Bases: object

Running Instances Information

Note

Read-only class

__init__(json)[source]
per_running_instance_info
Type

list(PerRunningInstanceInfo)

Per running instances information.

timestamp
Type

str

Last information update timestamp.

average_frequency_ghz
Type

float

Average Frequency in GHz.

max_frequency_ghz
Type

float

Maximum Frequency in GHz.

min_frequency_ghz
Type

float

Minimum Frequency in GHz.

average_max_frequency_ghz
Type

float

Average Maximum Frequency in GHz.

average_cpu_usage
Type

float

Average CPU Usage.

cluster_power_indicator
Type

float

Cluster Power Indicator.

average_memory_usage
Type

float

Average Memory Usage.

average_network_in_kbps
Type

float

Average Network Input in Kbps.

average_network_out_kbps
Type

float

Average Network Output in Kbps.

total_network_in_kbps
Type

float

Total Network Input in Kbps.

total_network_out_kbps
Type

float

Total Network Output in Kbps.

snapshot_results
Type

float

Total Network Output in Kbps.

running_core_count_by_cpu_model
Type

float

Total Network Output in Kbps.

class qarnot.status.PerRunningInstanceInfo(json)[source]

Bases: object

Per Running Instance Information

Note

Read-only class

__init__(json)[source]
phase
Type

str

Instance phase.

instance_id
Type

int

Instance number.

max_frequency_ghz
Type

float

Maximum CPU frequency in GHz.

current_frequency_ghz
Type

float

Current CPU frequency in GHz.

cpu_usage
Type

float

Current CPU usage.

max_memory_mb
Type

int

Maximum memory size in MB.

current_memory_mb
Type

int

Current memory size in MB.

memory_usage
Type

float

Current memory usage.

network_in_kbps
Type

float

Network Input in Kbps.

network_out_kbps
Type

float

Network Output in Kbps.

progress
Type

float

Instance progress.

execution_time_sec
Type

float

Instance execution time in seconds.

execution_time_ghz
Type

float

Instance execution time GHz

cpu_model
Type

str

CPU model

execution_attempt_count
Type

int

Number of execution attempt of an instance, (manly in case of preemption).

active_forward

type: list(TaskActiveForward)

Active forwards list.

vpn_connections

type: list(TaskVpnConnection)

Vpn connection list.

class qarnot.status.TaskActiveForward(json)[source]

Bases: object

Task Active Forward

Note

Read-only class

__init__(json)[source]
application_port
Type

int

Application Port.

forwarder_port
Type

int

Forwarder Port.

forwarder_host
Type

str

Forwarder Host.

bind_address
Type

str

Bind address of the listening socket on the forwarder host.

class qarnot.status.ExecutionTimeByCpuModel(json)[source]

Bases: object

Execution time by Cpu model

Note

Read-only class

__init__(json)[source]
model
Type

str

Cpu Model.

time
Type

int

Execution time in seconds.

core
Type

int

CPU Cores.

class qarnot.status.ExecutionTimeGhzByCpuModel(json)[source]

Bases: object

Execution time Gtz by Cpu model

Note

Read-only class

__init__(json)[source]
model
Type

str

Cpu Model.

time_ghz
Type

float

Execution time in Gigahertz.

clock_ratio
Type

int

Cpu clock ratio.

core
Type

int

CPU Cores.

class qarnot.status.TaskVpnConnection(json)[source]

Bases: object

Vpn Connection Information

Note

Read-only class

__init__(json)[source]
node_ip_address_cidr
Type

str

Vpn classless inter-domain routing address.

vpn_name
Type

str

Vpn name.