mirror of
https://github.com/bytedance/deer-flow.git
synced 2026-11-20 03:10:34 +00:00
* feat(workflows): add leased multi-Gateway coordination and fenced dispatch * test(workflows): validate deployed failover and canonicalize config revisions * fix(workflows): share namespace across registration and lease fencing * fix(workflows): recover interrupted cancellation without admission caps * fix(workflows): retain execution lease through child cleanup * docs: trim guidance padding to fit merged instruction budget * fix(workflows): release rejected admission slots and normalize gateway routing --------- Co-authored-by: Willem Jiang <willem.jiang@gmail.com>
18 lines
749 B
Python
18 lines
749 B
Python
"""Lease rows shared by extension coordination and the host admission transaction."""
|
|
|
|
from sqlalchemy import BigInteger, Double, String
|
|
from sqlalchemy.orm import Mapped, mapped_column
|
|
|
|
from deerflow.persistence.base import Base
|
|
|
|
|
|
class ExtensionExecutionLeaseRow(Base):
|
|
__tablename__ = "extension_execution_leases"
|
|
|
|
namespace: Mapped[str] = mapped_column(String(96), primary_key=True)
|
|
resource_id: Mapped[str] = mapped_column(String(128), primary_key=True)
|
|
user_id: Mapped[str] = mapped_column(String(64), nullable=False)
|
|
holder_id: Mapped[str] = mapped_column(String(128), nullable=False)
|
|
epoch: Mapped[int] = mapped_column(BigInteger, nullable=False)
|
|
expires_at: Mapped[float] = mapped_column(Double, nullable=False)
|