deerflow-code/offline-backend-20260512/backend/packages/harness/deerflow/workflows/ports.py
2026-09-07 18:24:55 +08:00

18 lines
521 B
Python

"""Leaf constants shared by the scheduler and node executors.
Kept dependency-free so the engine and the node package can both import it
without forming a cycle.
"""
from __future__ import annotations
# Metadata key a node sets to restrict which outgoing ports the engine activates.
ACTIVE_PORTS = "activePorts"
# Reserved port names.
LOOP_CONTINUE_PORT = "continue"
LOOP_DONE_PORT = "done"
CONDITION_DEFAULT_PORT = "else"
__all__ = ["ACTIVE_PORTS", "CONDITION_DEFAULT_PORT", "LOOP_CONTINUE_PORT", "LOOP_DONE_PORT"]