et_engine_core.batches

Classes

Batch(batch_id, batch_tool, n_jobs, ...)

Interface for ET Engine Batches

BatchStatus([submitted, pending, runnable, ...])

Interface for ET Engine Batch Status

Hardware(filesystem_list, cpu, memory)

Interface for ET Engine Hardware

Tool(tool_id, tool_name, tool_description)

Interface for ET Engine Tools

class Batch(batch_id: str, batch_tool: Tool, n_jobs: int, batch_hardware: Hardware)

Bases: object

Interface for ET Engine Batches

static from_json(batch_json: dict[slice(<class 'str'>, <class 'str'>, None)]) Self

Create a Batch object from JSON

Parameters:

batch_json (dict) – JSON-like representation of the object, e.g. from Batch(…).to_json()

Returns:

a Batch object

Return type:

Self

to_json() dict[slice(<class 'str'>, <class 'str'>, None)]

Export Batch to JSON-like dictionary

Returns:

dictionary that can be turned into a JSON string

Return type:

dict

class BatchStatus(submitted: int = 0, pending: int = 0, runnable: int = 0, starting: int = 0, running: int = 0, succeeded: int = 0, failed: int = 0)

Bases: object

Interface for ET Engine Batch Status

static from_json(batch_status_json: dict[slice(<class 'str'>, <class 'str'>, None)]) Self

Create a BatchStatus object from JSON

Parameters:

batch_status_json (dict) – JSON-like representation of the object, e.g. from BatchStatus(…).to_json()

Returns:

a BatchStatus object

Return type:

Self

to_json() dict[slice(<class 'str'>, <class 'str'>, None)]

Export Batch Status to JSON-like dictionary

Returns:

dictionary that can be turned into a JSON string

Return type:

dict