Skip to content

Commit

Permalink
Add workflow run and jobs endpoints
Browse files Browse the repository at this point in the history
  • Loading branch information
andrii-i committed Sep 11, 2024
1 parent b79b917 commit 4ef2373
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions jupyter_scheduler/extension.py
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,7 @@

JOB_DEFINITION_ID_REGEX = r"(?P<job_definition_id>\w+(?:-\w+)+)"
JOB_ID_REGEX = r"(?P<job_id>\w+(?:-\w+)+)"
WORKFLOW_ID_REGEX = r"(?P<workflow_id>\w+(?:-\w+)+)"


class SchedulerApp(ExtensionApp):
Expand All @@ -37,6 +38,9 @@ class SchedulerApp(ExtensionApp):
(r"scheduler/runtime_environments", RuntimeEnvironmentsHandler),
(r"scheduler/config", ConfigHandler),
(r"scheduler/worklows", WorkflowHandler),
(r"scheduler/worklows/%s/run" % (WORKFLOW_ID_REGEX, JOB_ID_REGEX), WorkflowHandler),
(r"scheduler/worklows/%s/jobs" % WORKFLOW_ID_REGEX, WorkflowHandler),
(r"scheduler/worklows/%s/jobs/%s" % (WORKFLOW_ID_REGEX, JOB_ID_REGEX), WorkflowHandler),
]

drop_tables = Bool(False, config=True, help="Drop the database tables before starting.")
Expand Down

0 comments on commit 4ef2373

Please sign in to comment.