Skip to content

Task

CLASS DESCRIPTION
TaskImport

Importing a task with version=None always fails, and can be used by

TaskType

Define the available task types.

Attributes

Classes

TaskImport pydantic-model

Bases: BaseModel

Importing a task with version=None always fails, and can be used by the client to discover available versions of task groups with a given pkg_name and with a task with name name.

Config:

  • extra: forbid

Fields:

Source code in fractal_server/app/schemas/v2/task.py
class TaskImport(BaseModel):
    """
    Importing a task with `version=None` always fails, and can be used by
    the client to discover available versions of task groups with a given
    `pkg_name` and with a task with name `name`.
    """

    model_config = ConfigDict(extra="forbid")

    pkg_name: NonEmptyStr
    version: NonEmptyStr | None = None
    name: NonEmptyStr

TaskType

Bases: StrEnum

Define the available task types.

Source code in fractal_server/app/schemas/v2/task.py
class TaskType(StrEnum):
    """
    Define the available task types.
    """

    COMPOUND = "compound"
    CONVERTER_COMPOUND = "converter_compound"
    NON_PARALLEL = "non_parallel"
    CONVERTER_NON_PARALLEL = "converter_non_parallel"
    PARALLEL = "parallel"

Functions: