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
f"{result['Message']}: won't commit PilotsHistory at this cycle",
99
104
)
100
105
101
-
values=result["Value"][1]
106
+
values=result["Value"]
102
107
forrecordinvalues:
103
108
rD= {}
104
109
foriP, _inenumerate(self.__pilotsMapping):
@@ -114,25 +119,20 @@ def execute(self):
114
119
115
120
# WMSHistory to Monitoring or Accounting
116
121
self.log.info(f"Committing WMSHistory to {'and '.join(self.jobMonitoringOption)} backend")
117
-
result=JobDB()._query("SELECT * FROM JobsHistorySummary")
122
+
result=JobDB()._query(
123
+
f"SELECT {','.join(self.__summaryKeyFieldsMapping+self.__summaryValueFieldsMapping)} FROM JobsHistorySummary ORDER BY {','.join(self.__summaryKeyFieldsMapping)}"
124
+
)
118
125
ifnotresult["OK"]:
119
126
self.log.error("Can't get the JobDB summary", f"{result['Message']}: won't commit WMSHistory at this cycle")
0 commit comments