Skip to content

Spec

TaskParams

Bases: SpecParams

Base task model.

Source code in digitalhub_core/entities/task/spec.py
31
32
33
34
35
36
37
class TaskParams(SpecParams):
    """
    Base task model.
    """

    function: str
    """Function string."""

function: str instance-attribute

Function string.

TaskParamsK8s

Bases: TaskParams, K8s

Kubernetes task model.

Source code in digitalhub_core/entities/task/spec.py
40
41
42
43
class TaskParamsK8s(TaskParams, K8s):
    """
    Kubernetes task model.
    """

TaskSpec

Bases: Spec

Task specification.

Source code in digitalhub_core/entities/task/spec.py
 7
 8
 9
10
11
class TaskSpec(Spec):
    """Task specification."""

    def __init__(self, function: str) -> None:
        self.function = function