This subroutine tells the negotiator to cancel the specified job step.
LoadLeveler API library libllapi.a
#include "llapi.h" int ll_terminate_job(LL_terminate_job_info *ptr);
You do not need to disable the default LoadLeveler scheduler in order to use this subroutine.
Only processes having the LoadLeveler administrator user ID can invoke this subroutine.
An external scheduler uses this subroutine in conjunction with the ll_get_job subroutine (of the job control API) and ll_start_jobs subroutine (of the query API). The external scheduler must use this subroutine to return errors from ll_start_job to interactive parallel jobs.
This subroutine returns a value of zero when successful, to indicate the terminate job request was accepted by the negotiator. However, a return code of zero does not necessarily imply the negotiator cancelled the job. Use the llq command to verify the job was cancelled. Otherwise, this subroutine returns an integer value defined in the llapi.h file.
Makefiles and examples which use this subroutine are located in the samples/llsch subdirectory of the release directory. The examples include the executable sch_api, which invokes the query API and the job control API to terminate the first job reported by the ll_get_jobs subroutine. You should submit at least two jobs prior to running the sample. To compile sch_api, copy the sample to a writeable directory and update the RELEASE_DIR field to represent the current LoadLeveler release directory.
Subroutines: ll_get_jobs, ll_start_job, ll_get_nodes.