PilotMonitorAgent

The Pilot Monitor Agent controls the tracking of pilots via the AgentMonitor and Grid specific sub-classes. This is a simple wrapper that performs the instantiation and monitoring of the AgentMonitor instance for all Grids.

class DIRAC.WorkloadManagementSystem.Agent.PilotMonitorAgent.PilotMonitorAgent(agentName, loadName, baseAgentName=False, properties={})

Bases: DIRAC.Core.Base.AgentModule.AgentModule

The specific agents must provide the following methods:
  • initialize() for initial settings
  • beginExecution()
  • execute() - the main method called in the agent cycle
  • endExecution()
  • finalize() - the graceful exit of the method, this one is usually used
    for the agent restart
am_Enabled()
am_checkStopAgentFile()
am_createStopAgentFile()
am_disableMonitoring()
am_getBasePath()
am_getControlDirectory()
am_getCyclesDone()
am_getMaxCycles()
am_getModuleParam(optionName)
am_getOption(optionName, defaultValue=None)
am_getPollingTime()
am_getShifterProxyLocation()
am_getStopAgentFile()
am_getWatchdogTime()
am_getWorkDirectory()
am_go()
am_initialize(*initArgs)
am_monitoringEnabled()
am_removeStopAgentFile()
am_secureCall(functor, args=(), name=False)
am_setModuleParam(optionName, value)
am_setOption(optionName, value)
am_stopExecution()
beginExecution()
endExecution()
execute()

Remove from PilotDB pilots that: - are older than self.clearPilotsDelay - are Aborted and older than self.clearAbortedDelay

finalize()
initialize()

Sets defaults