old jobs removal
This commit is contained in:
@@ -100,10 +100,16 @@ echo 'EC=$?' >> "$JOBFILE"
|
||||
echo "date +'Stop: %s' >> \"$STATFILE\" " >> "$JOBFILE"
|
||||
echo 'exit $EC' >> "$JOBFILE"
|
||||
|
||||
# clear out old job definitions (semirandomly)
|
||||
(
|
||||
[[ -e "$JOBROOT"/.lastdel ]] || touch "$JOBROOT"/.lastdel
|
||||
if test "$( find $JOBROOT/.lastdel -mmin +30 )"
|
||||
then touch "$JOBROOT"/.lastdel
|
||||
find "$JOBROOT" -maxdepth 2 -mindepth 2 -type f -mtime +10 -delete
|
||||
find "$JOBROOT" -type d -depth -empty -delete
|
||||
fi
|
||||
) &
|
||||
|
||||
echo "The job file is in $JOBFILE"
|
||||
# send the job
|
||||
srun --nodelist=${NODELIST[$INDEX]} "$JOBFILE"
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user