consts
Constants for the worker chaining system.
The chaining system describes a unit of work as a directed acyclic graph of stages. It is descriptive rather than
prescriptive: a worker's own orchestration remains the executor of record and drives the chain state from
generation-progress milestones, while simple consumers can use the reference executor in
horde_sdk.worker.chaining.executors.
CHAIN_NODE_KIND
Bases: StrEnum
The kind of work a chain node represents.
Source code in horde_sdk/worker/chaining/consts.py
GENERATE
class-attribute
instance-attribute
A round of inference or other primary computation.
POST_PROCESS
class-attribute
instance-attribute
Post-processing of a previous stage's output (e.g., upscaling or face fixing).
SAFETY_CHECK
class-attribute
instance-attribute
A safety evaluation of a previous stage's output.
SUBMIT
class-attribute
instance-attribute
Delivery of the finished results to the dispatch source.
CHAIN_NODE_STATE
Bases: StrEnum
The execution state of a chain node.
Source code in horde_sdk/worker/chaining/consts.py
PENDING
class-attribute
instance-attribute
The node has unmet dependencies and cannot start yet.
READY
class-attribute
instance-attribute
All dependencies are met; the node is eligible to start.
COMPLETED
class-attribute
instance-attribute
The node's work finished successfully.
CHAIN_CAPABILITY
Bases: StrEnum
The lane capability a chain node requires from the executing worker.
Workers map these tokens onto their own process lanes; the SDK attaches no scheduling semantics to them.
Source code in horde_sdk/worker/chaining/consts.py
INFERENCE
class-attribute
instance-attribute
Requires a process holding the primary (e.g., checkpoint-loaded) inference backend.
POST_PROCESSING
class-attribute
instance-attribute
Requires a process holding post-processing models (upscalers, facefixers, background removal).
SAFETY
class-attribute
instance-attribute
Requires a process holding the safety evaluation stack.
CHAIN_EDGE_KIND
Bases: StrEnum
The known chain edges.
Source code in horde_sdk/worker/chaining/consts.py
SAME_GENERATION
class-attribute
instance-attribute
The same generation object flows from one stage to the next within a single unit of work.
RESULTING_IMAGE_AS_SOURCE
class-attribute
instance-attribute
The resulting image of the previous generation is used as the source for the next generation.
RESULTING_TEXT_AS_PROMPT
class-attribute
instance-attribute
The resulting text of the previous generation is used as the prompt for the next generation.
RESULTING_IMAGE_AS_MASK
class-attribute
instance-attribute
The resulting image of the previous generation is used as the mask for the next generation.
RESULTING_IMAGE_AS_CONTROL_MAP
class-attribute
instance-attribute
The resulting image of the previous generation is used as the control map for the next generation.
IMAGE_TO_ALCHEMY_UPSCALE
class-attribute
instance-attribute
The resulting image from image generation is used as the source for alchemy upscaling.
IMAGE_TO_ALCHEMY_FACEFIX
class-attribute
instance-attribute
The resulting image from image generation is used as the source for alchemy face fixing.
ALCHEMY_TO_ALCHEMY
class-attribute
instance-attribute
The resulting image from one alchemy operation is used as the source for another alchemy operation.