def initialize(self): """ Sets defaults """ TaskManagerAgentBase.initialize(self) RequestTasks.__init__(self) self.transType = ['Replication', 'Removal'] # This sets the Default Proxy to used as that defined under # /Operations/Shifter/ProductionManager # the shifterProxy option in the Configuration can be used to change this default. self.am_setOption('shifterProxy', 'ProductionManager') return S_OK()
def initialize( self ): """ Sets defaults """ TaskManagerAgentBase.initialize( self ) WorkflowTasks.__init__( self ) self.transType = self.am_getOption( "TransType", ['MCSimulation', 'DataReconstruction', 'DataStripping', 'MCStripping', 'Merge'] ) # This sets the Default Proxy to used as that defined under # /Operations/Shifter/ProductionManager # the shifterProxy option in the Configuration can be used to change this default. self.am_setOption( 'shifterProxy', 'ProductionManager' ) return S_OK()
def initialize( self ): """ Sets defaults """ TaskManagerAgentBase.initialize( self ) RequestTasks.__init__( self ) self.transType = ['Replication', 'Removal'] # This sets the Default Proxy to used as that defined under # /Operations/Shifter/ProductionManager # the shifterProxy option in the Configuration can be used to change this default. self.am_setOption( 'shifterProxy', 'ProductionManager' ) return S_OK()
def initialize(self): """ Sets defaults """ TaskManagerAgentBase.initialize(self) WorkflowTasks.__init__(self) self.transType = self.am_getOption("TransType", [ 'MCSimulation', 'DataReconstruction', 'DataStripping', 'MCStripping', 'Merge' ]) # This sets the Default Proxy to used as that defined under # /Operations/Shifter/ProductionManager # the shifterProxy option in the Configuration can be used to change this default. self.am_setOption('shifterProxy', 'ProductionManager') return S_OK()
def initialize(self): """Standard initialize method""" res = TaskManagerAgentBase.initialize(self) if not res["OK"]: return res objLoader = ObjectLoader() _class = objLoader.loadObject( "TransformationSystem.Client.RequestTasks", "RequestTasks") if not _class["OK"]: raise Exception(_class["Message"]) self.requestTasksCls = _class["Value"] # clients self.taskManager = self.requestTasksCls(transClient=self.transClient) agentTSTypes = self.am_getOption("TransType", []) if agentTSTypes: self.transType = agentTSTypes else: self.transType = Operations().getValue( "Transformations/DataManipulation", ["Replication", "Removal"]) return S_OK()
def initialize(self): """Standard initialize method""" res = TaskManagerAgentBase.initialize(self) if not res["OK"]: return res agentTSTypes = self.am_getOption("TransType", []) if agentTSTypes: self.transType = agentTSTypes else: self.transType = Operations().getValue("Transformations/DataProcessing", ["MCSimulation", "Merge"]) return S_OK()
def initialize(self): """ Standard initialize method """ res = TaskManagerAgentBase.initialize(self) if not res['OK']: return res agentTSTypes = self.am_getOption('TransType', []) if agentTSTypes: self.transType = agentTSTypes else: self.transType = Operations().getValue('Transformations/DataProcessing', ['MCSimulation', 'Merge']) return S_OK()
def initialize(self): """ Standard initialize method """ res = TaskManagerAgentBase.initialize(self) if not res['OK']: return res agentTSTypes = self.am_getOption('TransType', []) if agentTSTypes: self.transType = agentTSTypes else: self.transType = Operations().getValue('Transformations/DataProcessing', ['MCSimulation', 'Merge']) return S_OK()
def initialize( self ): """ Standard initialize method """ res = TaskManagerAgentBase.initialize( self ) if not res['OK']: return res # clients self.taskManager = RequestTasks( transClient = self.transClient ) agentTSTypes = self.am_getOption( 'TransType', [] ) if agentTSTypes: self.transType = agentTSTypes else: self.transType = Operations().getValue( 'Transformations/DataManipulation', ['Replication', 'Removal'] ) return S_OK()
def initialize(self): """ Standard initialize method """ res = TaskManagerAgentBase.initialize(self) if not res['OK']: return res # clients self.taskManager = RequestTasks(transClient=self.transClient) agentTSTypes = self.am_getOption('TransType', []) if agentTSTypes: self.transType = agentTSTypes else: self.transType = Operations().getValue( 'Transformations/DataManipulation', ['Replication', 'Removal']) return S_OK()