Skip to content

Commit eceab4a

Browse files
committed
Return 204 no content
1 parent 8c56375 commit eceab4a

File tree

1 file changed

+1
-8
lines changed
  • diracx-routers/src/diracx/routers/jobs

1 file changed

+1
-8
lines changed

diracx-routers/src/diracx/routers/jobs/status.py

+1-8
Original file line numberDiff line numberDiff line change
@@ -140,7 +140,7 @@ async def reschedule_bulk_jobs(
140140
return resched_jobs
141141

142142

143-
@router.patch("/metadata")
143+
@router.patch("/metadata", status_code=HTTPStatus.NO_CONTENT)
144144
async def patch_metadata(
145145
updates: dict[int, dict[str, Any]],
146146
job_db: JobDB,
@@ -178,10 +178,3 @@ async def patch_metadata(
178178
p_updates_,
179179
)
180180

181-
return {
182-
job_id: {
183-
"attributes": attr_updates[job_id],
184-
"parameters": param_updates[job_id],
185-
}
186-
for job_id in updates.keys()
187-
}

0 commit comments

Comments
 (0)