feat: schedule node add python version

This commit is contained in:
tao.chen
2026-08-11 15:56:05 +08:00
parent e28bc39328
commit fe7f1a744e
9 changed files with 128 additions and 21 deletions
+5
View File
@@ -11,6 +11,7 @@ from common.db.base import Base
TriggerType = Literal["manual", "cron", "api"]
FailurePolicy = Literal["stop", "continue"]
PythonVersion = Literal["3.8", "3.10", "3.12"]
class Schedules(Base):
@@ -140,6 +141,10 @@ class ScheduleNodes(Base):
)
node_name: Mapped[str] = mapped_column(String(255), nullable=False)
versions_id: Mapped[str] = mapped_column(CHAR(26), nullable=False)
python_version: Mapped[str] = mapped_column(
String(8), nullable=False, server_default=text("'3.12'"),
comment="节点执行 Python 版本(3.8/3.10/3.12",
)
timeout_seconds: Mapped[int] = mapped_column(
INTEGER, nullable=False, server_default=text("600")
)