feat: schedule node add python version
This commit is contained in:
@@ -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")
|
||||
)
|
||||
|
||||
Reference in New Issue
Block a user