Skip to content

horde_sdk.worker.job_base

JOB_EXECUTION_MODE

Bases: StrEnum

How the job should be executed in a chain context.

Source code in horde_sdk/worker/job_base.py
class JOB_EXECUTION_MODE(StrEnum):
    """How the job should be executed in a chain context."""

    LOCAL_ONLY = auto()
    """Execute job locally on the worker without submitting back to API."""
    SUBMIT_TO_API = auto()
    """Submit job results back to API for distributed chain execution."""

LOCAL_ONLY class-attribute instance-attribute

LOCAL_ONLY = auto()

Execute job locally on the worker without submitting back to API.

SUBMIT_TO_API class-attribute instance-attribute

SUBMIT_TO_API = auto()

Submit job results back to API for distributed chain execution.