(Click to open topic with navigation)
There is a new option to qsub, "-s" which can take either a 'y' or 'n' (yes or no, respectively). When "-s y" is present, then the job is marked as a service job.
qsub -l walltime=100:00:00,nodes=1 -s y service_job.py
The example above submits a job to Torque with a walltime of 100 hours, one node, and it is marked as a service job. The script "service_job.py" will be used to start, stop, and check the status of the service/workload started on the compute nodes.
Related Topics