lsb_deletejob
Kills a job in a queueUse lsb_deletejob to send a signal to kill a running, user-suspended, or system-suspended job. The job can be requeued or deleted from the batch system.If the job is requeued, it retains its submit time but it is dispatched according to its requeue time. When the job is requeued, it is assigned the PEND status and re-run.If the job is deleted from the batch system, it is no longer available to be requeued.
#include <lsf/lsbatch.h>
int lsb_deletejob (LS_LONG_INT jobId, int times, int options)
Data Structures:
- Parameters:
jobId The job to be killed. If an element of a job array is to be killed, use the array form jobID[i] where jobID is the job array name, and i is the index value. times Original job submit time. options If the preprocessor macro LSB_KILL_REQUEUE in lsbatch.h is compared with options and found true, then requeue the job using the same job ID. If the preprocessor macro LSB_KILL_REQUEUE in lsbatch.h is compared with options and found false, then the job is deleted from the batch system. Define Statements:
- none
- Returns:
- int:0
The function was successful.int:-1
The function failed.Errors:
- Note:
- Any program using this API must be setuid to root if LSF_AUTH is not defined in the
lsf.conf file.Equivalent line commands:
- On failure, lsberrno is set to indicate the error.
Files:
- bkill
brequeue -J
- ${LSF_ENVDIR:-/etc}/lsf.conf
- See also:
- lsb_signaljob
Date Modified: 16 Jul 2014
Terms of Use
Copyright © 1994-2014 International Business Machines Corp.
US Government Users Restricted Rights - Use, duplication or disclosure
restricted by GSA ADP Schedule Contract with IBM Corp.