pbs_deljob(3B)
πΈ NAME β pbs_deljob(3B) πΈ
pbs_deljob β delete a pbs batch job. Thatβs the whole vibe, bestie: this function asks the batch system to yeet a job out of existence π
.
β¨ SYNOPSIS β¨
#include <pbs_error.h>
#include <pbs_ifl.h>
int pbs_deljob(int connect, char *job_id, char *extend)
π DESCRIPTION π
Okay so pbs_deljob() issues a batch request to delete a batch job. If the batch job is running, the execution server will send the SIGTERM signal followed by SIGKILL π. Thatβs the dramatic part β no cap.
β οΈ If the job is running,SIGTERMcomes first andSIGKILLfollows. Thatβs the delete pipeline in the original, and it is not subtle.
A Delete Job batch request is generated and sent to the server over the connection specified by connect, which is the return value of pbs_connect() π«Ά.
The argument job_id identifies which job is to be deleted, and it is specified in the form:
sequence_number.server
The argument extend is overloaded to serve two purposes, because apparently it contains multitudes β¨:
- If the pointer
extendpoints to a string of the formdeldelay=nnnn,, it is used to provide control over the delay between sending theSIGTERMandSIGKILLsignals to a running job. The charactersnnnnspecify a unsigned decimal integer time delay in seconds β±οΈ. - If
extendis the null pointer or points to a null string, the administrator established default time delay is used. - If
extendpoints to a string other than the above, it is taken as text to be appended to the message mailed to to the job owner π (yes, the double βtoβ is in the original; Iβm just the messenger). This mailing occurs if the job is deleted by a user other than the job owner.
π₯ SEE ALSO π₯
qdel(1B)pbs_connect(3B)
π DIAGNOSTICS π
When the batch request generated by the pbs_deljob() function has been completed successfully by a batch server, the routine will return 0 (zero) π. Otherwise, a non zero error is returned. The error number is also set in pbs_errno.
Final vibe check: this is pbs_deljob(3B) from the Local source/version, under the PBS banner. The footer has no date listed, so Iβm not inventing one β just pure icon behavior π«Άπ
π¦ where this page comes from
- epel 9: torque-devel 6.1.3-8.el9 Β· OpenPBS and TORQUEv1.1
- nixos 26.05: torque 6.1.3h2
- nixpkgs unstable: torque 6.1.3h2
- Copyright (c) 1999-2000 Veridian Information Solutions, Inc
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash-1017 on : a language model's rewrite of the original, under its terms