File indexing completed on 2024-04-06 11:56:35
0001
0002
0003
0004
0005
0006
0007
0008
0009
0010
0011 from builtins import range
0012 import Alignment.MillePedeAlignmentAlgorithm.mpslib.Mpslibclass as mpslib
0013 import os
0014
0015
0016 os.system("mps_update.py > /dev/null")
0017
0018 lib = mpslib.jobdatabase()
0019 lib.read_db()
0020
0021
0022 for i in range(len(lib.JOBID)):
0023
0024 if lib.JOBSTATUS[i] in ("DONE", "EXIT", "FETCH", "DISABLEDFETCH"):
0025
0026 theJobDir = 'jobData/'+lib.JOBDIR[i]
0027 theBatchDirectory = r"LSFJOB_"+ lib.JOBID[i]
0028
0029 command = 'mv %s/* %s/ > /dev/null 2>&1' % (theBatchDirectory, theJobDir)
0030 os.system(command)
0031 command = 'rm -rf '+theBatchDirectory
0032 os.system(command)
0033
0034
0035 if 'DISABLED' in lib.JOBSTATUS[i]:
0036 lib.JOBSTATUS[i] = 'DISABLEDFETCH'
0037 else:
0038 lib.JOBSTATUS[i] = 'FETCH'
0039
0040 lib.write_db()
0041
0042
0043 os.system('mps_check.py')
0044