We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 5008920 commit 26982ffCopy full SHA for 26982ff
diracx-logic/src/diracx/logic/jobs/status.py
@@ -511,8 +511,10 @@ async def set_job_parameters_or_attributes(
511
else:
512
param_updates[job_id][pname] = pvalue
513
514
- # bulk set job attributes
515
- await job_db.set_job_attributes(attr_updates)
+ # Bulk set job attributes if required
+ attr_updates = {k: v for k, v in attr_updates.items() if v}
516
+ if attr_updates:
517
+ await job_db.set_job_attributes(attr_updates)
518
519
# TODO: can we upsert to multiple documents?
520
for job_id, p_updates_ in param_updates.items():
0 commit comments