-
Notifications
You must be signed in to change notification settings - Fork 184
[8.0] adding possibility to bulk insert in JobLoggingDB #7866
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[8.0] adding possibility to bulk insert in JobLoggingDB #7866
Conversation
d5579d0 to
8fc7b77
Compare
8fc7b77 to
931e6d7
Compare
src/DIRAC/WorkloadManagementSystem/Service/JobManagerHandler.py
Outdated
Show resolved
Hide resolved
6dc37a4 to
2ffbfed
Compare
f16a1de to
a765366
Compare
35f2e3e to
d834c6c
Compare
| # For parametric jobs I can insert logging records in a bulk | ||
| if parametricJob and len(set(jobIDList)) == len(jobIDList): | ||
| result = self.jobLoggingDB.addLoggingRecord( | ||
| jobIDList, statusList, minorStatusList, date=timeStampList, source="JobManager" | ||
| ) | ||
| else: | ||
| for jobID, status, minorStatus, timeStamp in zip(jobIDList, statusList, minorStatusList, timeStampList): | ||
| result = self.jobLoggingDB.addLoggingRecord( | ||
| jobID, status, minorStatus, date=timeStamp, source="JobManager" | ||
| ) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Is there still a need for this if? I think the first branch would work for all cases?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
There is a trigger in JobLoggingDB:
I am not 100% sure this would be OK if len(set(jobIDList)) != len(jobIDList)
d834c6c to
cd14009
Compare
|
Sweep summary Sweep ran in https://github.com/DIRACGrid/DIRAC/actions/runs/11938158973 Failed:
|
BEGINRELEASENOTES
*WMS
NEW: for parametric jobs, added the possibility to bulk insert records in JobLoggingDB
ENDRELEASENOTES