test
CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
Namespaces | Functions | Variables
producerFileCleanner.py File Reference

Go to the source code of this file.

Namespaces

 producerFileCleanner
 

Functions

def producerFileCleanner.getDirSize
 
def producerFileCleanner.getDiskUsage
 
def producerFileCleanner.logme
 
def producerFileCleanner.sendmail
 

Variables

int producerFileCleanner.aDelQuota = 0
 
list producerFileCleanner.COLLECTDIR = sys.argv[3]
 
 producerFileCleanner.delQuota = diskUsed-quota
 
string producerFileCleanner.destDir = "%s/%sxxxx/%sxx/DQM_V0001_%s_R%s.root"
 
list producerFileCleanner.DIR_LIST = []
 
tuple producerFileCleanner.doneSize = getDirSize(TFILEDONEDIR)
 
list producerFileCleanner.EMAIL = sys.argv[1]
 
int producerFileCleanner.EMAILINTERVAL = 15
 
tuple producerFileCleanner.EXEDIR = os.path.dirname(__file__)
 
list producerFileCleanner.FILE_LIST = []
 
tuple producerFileCleanner.fMatch = re.match(r"(DQM|Playback|Playback_full)_V[0-9]{4}_([0-9a-zA-Z]+)_R([0-9]{9})(_T[0-9]{8}|)\.root",f)
 
string producerFileCleanner.fullFName = "%s/%s"
 
string producerFileCleanner.fullSdName = "%s/%s"
 
tuple producerFileCleanner.HOSTNAME = socket.gethostname()
 
int producerFileCleanner.lastEmailSent = 0
 
string producerFileCleanner.msg = "ERROR: Something is filling up the disks, %s does not"
 
tuple producerFileCleanner.now = time.time()
 
list producerFileCleanner.ORIGINALDONEDIR = sys.argv[4]
 
float producerFileCleanner.PRODUCER_DU_BOT = 50.0
 
float producerFileCleanner.PRODUCER_DU_TOP = 90.0
 
tuple producerFileCleanner.quota = long(diskSize*PRODUCER_DU_BOT/100)
 
tuple producerFileCleanner.run = fMatch.group(3)
 
string producerFileCleanner.SENDMAIL = "/usr/sbin/sendmail"
 
string producerFileCleanner.STOP_FILE = "%s/.stop"
 
tuple producerFileCleanner.subSystem = fMatch.group(2)
 
list producerFileCleanner.TFILEDONEDIR = sys.argv[2]
 
tuple producerFileCleanner.TMP_LIST = glob.glob("%s/*.tmp" % COLLECTDIR)
 
int producerFileCleanner.WAITTIME = 3600