Skip to content

Commit

Permalink
Return 204 no content
Browse files Browse the repository at this point in the history
  • Loading branch information
ryuwd committed Feb 10, 2025
1 parent 8c56375 commit eceab4a
Showing 1 changed file with 1 addition and 8 deletions.
9 changes: 1 addition & 8 deletions diracx-routers/src/diracx/routers/jobs/status.py
Original file line number Diff line number Diff line change
Expand Up @@ -140,7 +140,7 @@ async def reschedule_bulk_jobs(
return resched_jobs


@router.patch("/metadata")
@router.patch("/metadata", status_code=HTTPStatus.NO_CONTENT)
async def patch_metadata(
updates: dict[int, dict[str, Any]],
job_db: JobDB,
Expand Down Expand Up @@ -178,10 +178,3 @@ async def patch_metadata(
p_updates_,
)

return {
job_id: {
"attributes": attr_updates[job_id],
"parameters": param_updates[job_id],
}
for job_id in updates.keys()
}

0 comments on commit eceab4a

Please sign in to comment.