Esempio n. 1
0
    def __init__(self, config):
        self.config = config
        self.logger = logging.getLogger("CRABLogger.DataWorkflow")
        self.allCMSNames = CMSSitesCache(cachetime=0, sites={})

        self.splitArgMap = {
                        "Automatic": "minutes_per_job",
                        "LumiBased": "lumis_per_job",
                        "FileBased": "files_per_job",
                        "EventBased": "events_per_job",
                        "EventAwareLumiBased": "events_per_job"}

        self.Task = getDBinstance(config, 'TaskDB', 'Task')
        self.JobGroup = getDBinstance(config, 'TaskDB', 'JobGroup')
        self.FileMetaData = getDBinstance(config, 'FileMetaDataDB', 'FileMetaData')
        self.transferDB = getDBinstance(config, 'FileTransfersDB', 'FileTransfers')
    def __init__(self, app, api, config, mount, centralcfg):
        RESTEntity.__init__(self, app, api, config, mount)

        self.logger = logging.getLogger("CRABLogger.RESTUserWorkflow")
        self.userworkflowmgr = DataUserWorkflow()
        self.allCMSNames = CMSSitesCache(cachetime=0, sites={})
        self.allPNNNames = CMSSitesCache(cachetime=0, sites={})
        self.centralcfg = centralcfg
        self.Task = getDBinstance(config, 'TaskDB', 'Task')
        self.tagCollector = TagCollector(logger=self.logger,
                                         anytype=1,
                                         anyarch=1)
 def __init__(self, config):
     self.logger = logging.getLogger("CRABLogger.DataFileMetadata")
     self.FileMetaData = getDBinstance(config, 'FileMetaDataDB',
                                       'FileMetaData')
Esempio n. 4
0
 def __init__(self, app, api, config, mount):
     RESTEntity.__init__(self, app, api, config, mount)
     self.Task = getDBinstance(config, 'TaskDB', 'Task')
     self.JobGroup = getDBinstance(config, 'TaskDB', 'JobGroup')
     self.logger = logging.getLogger("CRABLogger.RESTTask")
Esempio n. 5
0
 def __init__(self, app, api, config, mount):
     RESTEntity.__init__(self, app, api, config, mount)
     self.Task = getDBinstance(config, 'TaskDB', 'Task')
     self.JobGroup = getDBinstance(config, 'TaskDB', 'JobGroup')
 def __init__(self, app, api, config, mount):
     RESTEntity.__init__(self, app, api, config, mount)
     self.transferDB = getDBinstance(config, 'FileTransfersDB', 'FileTransfers')
     self.logger = logging.getLogger("CRABLogger.FileTransfers")
Esempio n. 7
0
 def __init__(self, app, api, config, mount):  #pylint: disable=unused-argument
     RESTEntity.__init__(self, app, api, config, mount)
     self.transferDB = getDBinstance(config, 'FileTransfersDB',
                                     'FileTransfers')
     self.logger = logging.getLogger("CRABLogger.FileTransfers")