Usage:
JobDBAdminPurger.sh [-c|--conf CREAMConfPath] [-j|--jobIds jobId1:jobId2:...] | [-f|--filejobIds filenameJobIds] | [-s|--status statusType0,deltaTime:statusType1:...] [-h|--help]
Options:
-
-c | --conf : the CREAM conf file (to be specified only if it is not the standard value /etc/glite-ce-cream/cream-config.xml )
-
-j | --jobids : the IDs (list of values separated by ':') of the jobs to be purged
-
-f | --filejobIds : the file containing a list of jobids (one per line) to be purged
-
-s | --status : the list of state,deltatime (list of values separated by ':') of the jobs to be purged. A job is purged if it is in specified state for more that deltatime days. deltatime can be omitted (which means that all jobs in that status will be purged). The possible states are:
- REGISTERED
- PENDING
- IDLE
- RUNNING
- REALLY-RUNNING
- CANCELLED
- HELD
- DONE-OK
- DONE-FAILED
- PURGED
- ABORTED
Examples:
JobDBAdminPurger.sh -j CREAM217901296:CREAM324901232
JobDBAdminPurger.sh -s registered:pending:idle
JobDBAdminPurger.sh -s registered,3:pending:idle,5
JobDBAdminPurger.sh -c /etc/glite-ce-cream/cream-config.xml --status registered:idle
JobDBAdminPurger.sh --jobIds CREAM217901296:CREAM324901232
JobDBAdminPurger.sh -f /tmp/jobIdsToPurge.txt
Please note that this script should be run just to clean the CREAM DB in case of problems (i.e. jobs reported in a non terminal status while this is not the case)
Please also note that this script purges jobs from the CREAM DB. The relevant job sandbox directories are also deleted. |