File tree Expand file tree Collapse file tree 1 file changed +7
-8
lines changed
src/DIRAC/WorkloadManagementSystem/Agent Expand file tree Collapse file tree 1 file changed +7
-8
lines changed Original file line number Diff line number Diff line change 88 :caption: StatesAccountingAgent options
99"""
1010import datetime
11+ import threading
1112
1213from DIRAC import S_ERROR , S_OK
1314from DIRAC .AccountingSystem .Client .DataStoreClient import DataStoreClient
@@ -67,15 +68,13 @@ def initialize(self):
6768 if "Monitoring" in self .pilotMonitoringOption :
6869 self .pilotReporter = MonitoringReporter (monitoringType = "PilotsHistory" , failoverQueueName = messageQueue )
6970
70- res = JobDB ().fillJobsHistorySummary ()
71- if not res ["OK" ]:
72- self .log .error ("Could not fill the JobDB summary" , res ["Message" ])
73- return S_ERROR ()
71+ threadJobDB = threading .Thread (target = JobDB ().fillJobsHistorySummary )
72+ threadJobDB .daemon = True
73+ threadJobDB .start ()
7474
75- res = PilotAgentsDB ().fillPilotsHistorySummary ()
76- if not res ["OK" ]:
77- self .log .error ("Could not fill the PilotAgentsDB summary" , res ["Message" ])
78- return S_ERROR ()
75+ threadPilotDB = threading .Thread (target = PilotAgentsDB ().fillPilotsHistorySummary )
76+ threadPilotDB .daemon = True
77+ threadPilotDB .start ()
7978
8079 self .__jobDBFields = []
8180 for field in self .__summaryKeyFieldsMapping :
You can’t perform that action at this time.
0 commit comments