pbs_orderjob(3B)
β¨ NAME β¨
okay bestie, welcome to pbs_orderjob(3B) β the little routine that swaps positions of two PBS batch jobs like itβs rearranging seats in the group chat. π
π SYNOPSIS π
#include <pbs_error.h>
#include <pbs_ifl.h>
int pbs_orderjob(int connect, char *job_id1, char *job_id2,
char *extend)
π DESCRIPTION π
So this one issues a batch request to swap the positions of two jobs. Iconic behavior, fr fr.
It generates an Order Job (50) batch request and sends it to the server over the connection specified by connect. No cap, thatβs the whole move.
It can be used on jobs and job arrays. It can also be used on jobs in different queues. But bestie, listen: both jobs must be at the same server. Both. Same server. Thatβs the vibe check. π«Ά
π¨ Real talk: You cannot swap positions of jobs that are running. Like, absolutely not. Thatβs the rule.
π§ ARGUMENTS π§
connectβ Return value ofpbs_connect(). Specifies the connection over which to send the batch request to the server. Itβs giving βthis is the line weβre calling on.β βοΈjobID1,jobID2β IDs of jobs to be swapped. Format for a job:<sequence number>.<server name>. Format for a job array:<sequence number>[].<server name>. Slay those exact formats, bestie. πextendβ Character string for extensions to the command. Not currently used. Itβs literally just chilling there for now. π
π RETURN VALUE π
The routine returns 0 (zero) on success. Yay, success, we love that for us. β¨
If an error occurred, the routine returns a non-zero exit value, and the error number is available in the global integer pbs_errno. So yeah, check pbs_errno if things get messy. π
π₯ SEE ALSO π₯
qmove(1B)qorder(1B)qsub(1B)pbs_connect(3B)
okay thatβs the whole page, bestie π«Ά signing off from Local β PBS Professional, 15 November 2019, pbs_orderjob(3B). π
π¦ 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