Skip to content
Snippets Groups Projects

Resolve "Initial Publish uptime of CS instance to IS"

1 file
+ 4
4
Compare changes
  • Side-by-side
  • Inline
@@ -64,14 +64,14 @@ class InfoServiceThread(threading.Thread):
@@ -64,14 +64,14 @@ class InfoServiceThread(threading.Thread):
def send_update(self):
def send_update(self):
try:
try:
self.logger.debug("Getting state from IS")
self.logger.debug("Getting state from IS")
data_identifier = "{}.CastorScriptState".format(self.conf.partition)
data_identifier = "RunParams.{}.State".format(self.tdaq_app_name)
cs_state = ispy.ISInfoDynAny() #pylint: disable=no-member
cs_state = ispy.ISInfoDynAny() #pylint: disable=no-member
self.is_info_dictionary.getValue(data_identifier, cs_state)
#self.is_info_dictionary.getValue(data_identifier, cs_state)
cs_state.tdaq_app_name = self.tdaq_app_name
#cs_state.tdaq_app_name = self.tdaq_app_name
cs_state.uptime_seconds = self.uptime_seconds
cs_state.uptime_seconds = self.uptime_seconds
keep_history = True
keep_history = False
self.is_info_dictionary.checkin(data_identifier, self.cs_state, keep_history)
self.is_info_dictionary.checkin(data_identifier, self.cs_state, keep_history)
self.logger.debug("Update sent: %s", str(cs_state))
self.logger.debug("Update sent: %s", str(cs_state))
Loading