def forceRefresh(self, fromMaster=False): """ Force refresh :param bool fromMaster: refresh from master :return: S_OK()/S_ERROR() """ return gRefresher.forceRefresh(fromMaster=fromMaster)
def syncRemoteConfiguration( self, strict = False ): """ Force a Resync with Configuration Server Under normal conditions this is triggered by an access to any configuration data """ if self.componentName == "Configuration/Server" : if gConfigurationData.isMaster(): gLogger.info( "Starting Master Configuration Server" ) gRefresher.disable() return S_OK() retDict = gRefresher.forceRefresh() if not retDict['OK']: gLogger.error( "Can't update from any server", retDict[ 'Message' ] ) if strict: return retDict return S_OK()
def syncRemoteConfiguration(self, strict=False): """ Force a Resync with Configuration Server Under normal conditions this is triggered by an access to any configuration data """ if self.componentName == "Configuration/Server": if gConfigurationData.isMaster(): gLogger.info("Starting Master Configuration Server") gRefresher.disable() return S_OK() retDict = gRefresher.forceRefresh() if not retDict['OK']: gLogger.error("Can't update from any server", retDict['Message']) if strict: return retDict return S_OK()
#!/usr/bin/env python """ refresh CS """ from __future__ import print_function from __future__ import absolute_import from __future__ import division from DIRAC.Core.Base import Script Script.parseCommandLine() from DIRAC.ConfigurationSystem.private.Refresher import gRefresher res = gRefresher.forceRefresh() if not res['OK']: print(res['Message'])
def forceRefresh( self ): return gRefresher.forceRefresh()
def forceRefresh( self, fromMaster = False ): return gRefresher.forceRefresh( fromMaster = fromMaster )
#!/usr/bin/env python """ refresh CS """ from DIRAC.Core.Base import Script Script.parseCommandLine() from DIRAC.ConfigurationSystem.private.Refresher import gRefresher res = gRefresher.forceRefresh() if not res['OK']: print res['Message']