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