Skip to content

Commit 650a566

Browse files
committed
add status to the workflow models
1 parent cdafb4f commit 650a566

File tree

2 files changed

+3
-0
lines changed

2 files changed

+3
-0
lines changed

jupyter_scheduler/orm.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -115,6 +115,7 @@ class Workflow(Base):
115115
workflow_id = Column(String(36), primary_key=True, default=generate_uuid)
116116
tasks = Column(JsonType)
117117
status = Column(String(64), default=Status.CREATED)
118+
active = Column(Boolean, default=False)
118119
# All new columns added to this table must be nullable to ensure compatibility during database migrations.
119120
# Any default values specified for new columns will be ignored during the migration process.
120121

jupyter_scheduler/workflows.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -156,6 +156,7 @@ class DescribeWorkflow(BaseModel):
156156
workflow_id: str
157157
tasks: List[str] = None
158158
status: Status = Status.CREATED
159+
active: Optional[bool] = None
159160

160161
class Config:
161162
orm_mode = True
@@ -164,6 +165,7 @@ class Config:
164165
class UpdateWorkflow(BaseModel):
165166
tasks: Optional[List[str]] = None
166167
status: Optional[Status] = None
168+
active: Optional[bool] = None
167169

168170
class Config:
169171
orm_mode = True

0 commit comments

Comments
 (0)