TransformationAgent

TransformationAgent processes transformations found in the transformation database.

The following options can be set for the TransformationAgent.

TransformationAgent options
TransformationAgent
{
  #Time between cycles in seconds
  PollingTime = 120
}
class DIRAC.TransformationSystem.Agent.TransformationAgent.TransformationAgent(*args, **kwargs)

Bases: AgentModule, TransformationAgentsUtilities

Usually subclass of AgentModule

__init__(*args, **kwargs)

c’tor

am_Enabled()
am_checkStopAgentFile()
am_createStopAgentFile()
am_getControlDirectory()
am_getCyclesDone()
am_getMaxCycles()
am_getModuleParam(optionName)
am_getOption(optionName, defaultValue=None)

Gets an option from the agent’s configuration section. The section will be a subsection of the /Systems section in the CS.

am_getPollingTime()
am_getShifterProxyLocation()
am_getStopAgentFile()
am_getWatchdogTime()
am_getWorkDirectory()
am_go()
am_initialize(*initArgs)

Common initialization for all the agents.

This is executed every time an agent (re)starts. This is called by the AgentReactor, should not be overridden.

am_removeStopAgentFile()
am_secureCall(functor, args=(), name=False)
am_setModuleParam(optionName, value)
am_setOption(optionName, value)
am_stopExecution()
beginExecution()
endExecution()
execute()

Just puts transformations in the queue, and spawns threads if there’s work to do.

finalize()

graceful finalization

getTransformations()

Obtain the transformations to be executed - this is executed at the start of every loop (it’s really the only real thing in the execute()

initialize()

standard initialize

pluginCallback(transID, invalidateCache=False)

Standard plugin callback

processTransformation(transDict, clients)

process a single transformation (in transDict)