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

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

	self.Task = getDBinstance(config, 'TaskDB', 'Task')
	self.JobGroup = getDBinstance(config, 'TaskDB', 'JobGroup')
	self.FileMetaData = getDBinstance(config, 'FileMetaDataDB', 'FileMetaData')
Example #2
0
    def __init__(self, config):
        self.config = config
        self.logger = logging.getLogger("CRABLogger.DataWorkflow")
        self.allCMSNames = CMSSitesCache(cachetime=0, sites={})

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

        self.Task = getDBinstance(config, 'TaskDB', 'Task')
        self.JobGroup = getDBinstance(config, 'TaskDB', 'JobGroup')
        self.FileMetaData = getDBinstance(config, 'FileMetaDataDB',
                                          'FileMetaData')
Example #3
0
    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.centralcfg = centralcfg
        self.Task = getDBinstance(config, 'TaskDB', 'Task')
Example #4
0
    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.centralcfg = centralcfg
        self.Task = getDBinstance(config, 'TaskDB', 'Task')
Example #5
0
 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")
Example #6
0
 def __init__(self, config):
     self.logger = logging.getLogger("CRABLogger.DataFileMetadata")
     self.FileMetaData = getDBinstance(config,'FileMetaDataDB','FileMetaData')
Example #7
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")
 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')
Example #9
0
 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")
 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): #pylint: disable=unused-argument
     RESTEntity.__init__(self, app, api, config, mount)
     self.transferDB = getDBinstance(config, 'FileTransfersDB', 'FileTransfers')
     self.logger = logging.getLogger("CRABLogger.FileTransfers")
Example #12
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")
Example #13
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")
Example #14
0
 def __init__(self, config):
     self.logger = logging.getLogger("CRABLogger.DataFileMetadata")
     self.FileMetaData = getDBinstance(config, 'FileMetaDataDB',
                                       'FileMetaData')