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
Serialize the data to and from the database for an DistributorTask object.
- class core.serializers.SerializeSwarmTask
Serialize the data to and from the db for a Swarm Task.
- class core.serializers.SerializeTaskInstance
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
Submit the above args for an DistributorTaskInstance object to the database.
- static kwargs_from_wire_distributor(wire_tuple: tuple) dict
Retrieve the DistributorTaskInstance information from the database.
- class core.serializers.SerializeTaskInstanceErrorLog
Serialize the data to and from the database for an TaskInstanceErrorLog.
- static to_wire(task_instance_error_log_id: int, error_time: datetime.datetime, description: str) tuple
Submit the args for an SerializeTaskInstanceErrorLog object to the database.
- class core.serializers.SerializeExecutorTaskInstanceErrorLog
Serialize the data to and from the database for an ExecutorTaskInstanceErrorLog.
- static to_wire(task_instance_error_log_id: int, error_time: datetime.datetime, description: str) tuple
A to_wire method.
Submit the above args for an SerializeExecutorTaskInstanceErrorLog object to the database.
- class core.serializers.SerializeClientTool
Serialize the data to and from the database for a Tool object.
- class core.serializers.SerializeClientToolVersion
Serialize the data to and from the database for a ToolVersion.
- class core.serializers.SerializeClientTaskTemplate
Serialize the data to and from the database for a TaskTemplate.
- class core.serializers.SerializeClientTaskTemplateVersion
Serialize the data to and from the database for a TaskTemplateVersion.
- class core.serializers.SerializeWorkflowRun
Serialize the data to and from the database for a WorkflowRun.
- class core.serializers.SerializeClusterType
Serialize the data to and from the database for a ClusterType.
- class core.serializers.SerializeCluster
Serialize the data to and from the database for a Cluster.
- class core.serializers.SerializeQueue
Serialize the data to and from the database for a Queue.
- class core.serializers.SerializeTaskResourceUsage
Serialize the data to and from the database for Task resource usage.
- class core.serializers.SerializeTaskTemplateResourceUsage
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
Submit the TaskTemplate resource usage information to the database.
- class core.serializers.SerializeDistributorArray
Serialize the data to and from the database for DistributorArray.
- class core.serializers.SerializeDistributorWorkflow
Serialize the data to and from the database for DistributorWorkflow.
- class core.serializers.SerializeTaskResources
Serialize the data to and from the database for Task resources.