I am using PBS on a cluster where PBS is configured as follows: if one submits a job with a given walltime and lets the job run for longer than the wall time, the scheduler will not kill the job. However, it will associate a ‘red flag’ with the user who did this, and give him low priority for his next job.
To avoid this, I would like to insert manually a job termination in my PBS script.
See for example the following basic script:
#PBS -l walltime=00:01:00
#PBS -l mem=1gb
#PBS -l nodes=1:ppn=1
#PBS -q batch
How may I modify this script in such a way that the job is automatically killed with qdel after 1 minute?