pbs_preempt_jobs(3B)
π NAME π
okay so this is pbs_preempt_jobs(3B) from PBS Professional β the little function that preempts a whole list of jobs, bestie. β¨
πΈ SYNOPSIS πΈ
#include <pbs_error.h>
#include <pbs_ifl.h>
int preempt_job_info *pbs_preempt_jobs(int connect, char **jobID_list)
π DESCRIPTION π
So basically, pbs_preempt_jobs() sends the server a list of jobs to be preempted. That's the whole vibe. π«Ά
It sends a Preempt Jobs (93) batch request to the server over the connection specified by connect.
Then it returns a list of the preempted jobs, along with the method used to preempt each one. Iconic, honestly. π
π¦ ARGUMENTS π¦
connectβ this is the return value ofpbs_connect(). It specifies the connection handle over which to send the batch request to the server. Like, it's literally your little phone line to the server. πjobID_listβ the list of job IDs to be preempted, as a null-terminated array of pointers to strings. periodt.
Format for a job ID:
<sequence number>.<server name>
Format for a job array ID:
<sequence number>[].<server name>
For example:
const char *joblist[3];
joblist[0]="123@myserver";
joblist[1]="456@myserver";
joblist[2]=NULL;
π RETURN VALUE π
Returns a list of preempted jobs. Each job is represented in a preempt_job_info structure, which has the following fields:
job_idβ the job ID, in achar*. πpreempt_methodβ how the job was preempted, in achar:Sβ the job was preempted using suspension.Cβ the job was preempted using checkpointing.Rβ the job was preempted by being requeued.Dβ the job was preempted by being deleted.0(zero) β the job could not be preempted. π
π§ CLEANUP π§
You must free the list of preempted jobs by passing it directly to free().
no cap, bestie β don't just leave it there, that's a memory leak and it's not giving main character energy π
and that's the whole page, bestie β this was pbs_preempt_jobs(3B) from PBS Professional, dated 11 December 2019, and the footer vibes say Local. slay, go preempt those jobs responsibly π
β¨π
π¦ where this page comes from
- nixos 26.05: openpbs 23.06.06-unstable-2026-04-02
- nixpkgs unstable: openpbs 23.06.06-unstable-2026-04-02
- Copyright (C) 1994-2021 Altair Engineering, Inc
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash-1017 on : a language model's rewrite of the original, under its terms