コード例 #1
0
ファイル: DataWorkflow.py プロジェクト: khurtado/CRABServer
    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')
コード例 #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')
コード例 #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')
コード例 #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')
コード例 #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")
コード例 #6
0
 def __init__(self, config):
     self.logger = logging.getLogger("CRABLogger.DataFileMetadata")
     self.FileMetaData = getDBinstance(config,'FileMetaDataDB','FileMetaData')
コード例 #7
0
ファイル: RESTTask.py プロジェクト: belforte/CRABServer
 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")
コード例 #8
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')
コード例 #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")
コード例 #10
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')
コード例 #11
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")
コード例 #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")
コード例 #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")
コード例 #14
0
 def __init__(self, config):
     self.logger = logging.getLogger("CRABLogger.DataFileMetadata")
     self.FileMetaData = getDBinstance(config, 'FileMetaDataDB',
                                       'FileMetaData')