core.serializers
Serializing data when going to and from the database.
Classes
Serialize the data to and from the database for an DistributorTask object. |
|
Serialize the data to and from the db for a Swarm Task. |
|
Serialize the data to and from the database for an DistributorTaskInstance. |
|
Serialize the data to and from the database for an TaskInstanceErrorLog. |
|
Serialize the data to and from the database for an ExecutorTaskInstanceErrorLog. |
|
Serialize the data to and from the database for a Tool object. |
|
Serialize the data to and from the database for a ToolVersion. |
|
Serialize the data to and from the database for a TaskTemplate. |
|
Serialize the data to and from the database for a TaskTemplateVersion. |
|
Serialize the data to and from the database for a WorkflowRun. |
|
Serialize the data to and from the database for a ClusterType. |
|
Serialize the data to and from the database for a Cluster. |
|
Serialize the data to and from the database for a Queue. |
|
Serialize the data to and from the database for Task resource usage. |
|
Serialize the data to and from the database for TaskTemplate resource usage. |
|
Serialize the data to and from the database for DistributorArray. |
|
Serialize the data to and from the database for DistributorWorkflow. |
|
Serialize the data to and from the database for Task resources. |
|
Serialize the data to and from the database for TaskInstance batch. |
Module Contents
- class core.serializers.SerializeDistributorTask[source]
Serialize the data to and from the database for an DistributorTask object.
- class core.serializers.SerializeSwarmTask[source]
Serialize the data to and from the db for a Swarm Task.
- class core.serializers.SerializeTaskInstance[source]
Serialize the data to and from the database for an DistributorTaskInstance.
- static to_wire_distributor(task_instance_id: int, task_id: int, workflow_run_id: int, workflow_id: int, status: str, distributor_id: str | None, task_resources_id: int | None = None, array_id: int | None = None, array_batch_num: int | None = None, array_step_id: int | None = None) tuple[source]
Submit the above args for an DistributorTaskInstance object to the database.
- static kwargs_from_wire_distributor(wire_tuple: tuple) dict[source]
Retrieve the DistributorTaskInstance information from the database.
- class core.serializers.SerializeTaskInstanceErrorLog[source]
Serialize the data to and from the database for an TaskInstanceErrorLog.
- class core.serializers.SerializeExecutorTaskInstanceErrorLog[source]
Serialize the data to and from the database for an ExecutorTaskInstanceErrorLog.
- class core.serializers.SerializeClientTool[source]
Serialize the data to and from the database for a Tool object.
- class core.serializers.SerializeClientToolVersion[source]
Serialize the data to and from the database for a ToolVersion.
- class core.serializers.SerializeClientTaskTemplate[source]
Serialize the data to and from the database for a TaskTemplate.
- class core.serializers.SerializeClientTaskTemplateVersion[source]
Serialize the data to and from the database for a TaskTemplateVersion.
- static to_wire(task_template_version_id: int, command_template: str, node_args: List[str], task_args: List[str], op_args: List[str], id_name_map: dict, task_template_id: int) Tuple[int, str, List[str], List[str], List[str], dict, int][source]
Submit the TaskTemplateVersion information to the database.
- class core.serializers.SerializeWorkflowRun[source]
Serialize the data to and from the database for a WorkflowRun.
- class core.serializers.SerializeClusterType[source]
Serialize the data to and from the database for a ClusterType.
- class core.serializers.SerializeCluster[source]
Serialize the data to and from the database for a Cluster.
- class core.serializers.SerializeQueue[source]
Serialize the data to and from the database for a Queue.
- class core.serializers.SerializeTaskResourceUsage[source]
Serialize the data to and from the database for Task resource usage.
- class core.serializers.SerializeTaskTemplateResourceUsage[source]
Serialize the data to and from the database for TaskTemplate resource usage.
- static to_wire(num_tasks: int | None = None, min_mem: int | None = None, max_mem: int | None = None, mean_mem: float | None = None, min_runtime: int | None = None, max_runtime: int | None = None, mean_runtime: float | None = None, median_mem: float | None = None, median_runtime: float | None = None, ci_mem: List[Any] | None = None, ci_runtime: List[Any] | None = None) tuple[source]
Submit the TaskTemplate resource usage information to the database.
- class core.serializers.SerializeDistributorArray[source]
Serialize the data to and from the database for DistributorArray.
- class core.serializers.SerializeDistributorWorkflow[source]
Serialize the data to and from the database for DistributorWorkflow.
- class core.serializers.SerializeTaskResources[source]
Serialize the data to and from the database for Task resources.
- class core.serializers.SerializeTaskInstanceBatch[source]
Serialize the data to and from the database for TaskInstance batch.