You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Scheduler update APIs are using models that require job_id or job_definition_id as required attributes. This means, that the payload from the REST call has to include these. This is inconsistent with the REST APIs, as the ids should be populated from the path query.
Proposed Solution
Remove job_id from UpdateJob model
Update definition of update_job in Scheduler.py to take job_id as one of the inputs
Remove job_definition_id from UpdateJobDefinition model
Update definition of update_job_definition in Scheduler.py to take job_definition_id as one of the inputs.
Problem
Scheduler update APIs are using models that require
job_id
orjob_definition_id
as required attributes. This means, that the payload from the REST call has to include these. This is inconsistent with the REST APIs, as the ids should be populated from the path query.Proposed Solution
job_id
fromUpdateJob
modelupdate_job
inScheduler.py
to takejob_id
as one of the inputsjob_definition_id
fromUpdateJobDefinition
modelupdate_job_definition
inScheduler.py
to takejob_definition_id
as one of the inputs.Additional context
jupyter-scheduler/jupyter_scheduler/models.py
Lines 146 to 152 in 9b08703
jupyter-scheduler/jupyter_scheduler/models.py
Lines 184 to 198 in 9b08703
jupyter-scheduler/jupyter_scheduler/scheduler.py
Line 49 in 9b08703
jupyter-scheduler/jupyter_scheduler/scheduler.py
Line 99 in 9b08703
The text was updated successfully, but these errors were encountered: