pbs_rlsjob(3B)

πŸ“¦ version 6.1.3, in epel 9, nixos 26.05, nixpkgs unstable

πŸ’– pbs_rlsjob: release a hold on a pbs batch job πŸ’–

okay so bestie, welcome to the pbs_rlsjob(3B) page from the PBS crew 🌈. This is the function that releases a hold on a pbs batch job, and it is literally giving β€œunlock the job” energy. Let’s get into it πŸ’….


🌸 NAME 🌸

pbs_rlsjob β€” release a hold on a pbs batch job. periodt 🫢

✨ SYNOPSIS ✨

#include <pbs_error.h>
#include <pbs_ifl.h>

int pbs_rlsjob(int connect, char *job_id, char *hold_type, char *extend)

πŸŽ€ DESCRIPTION πŸŽ€

okay so the whole vibe is: you issue a batch request to release a hold from a job πŸ¦‹.

A Release 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 the job from which the hold is to be released, and it is specified in the form sequence_number.server πŸŽ€.

The parameter hold_type contains the type of hold to be released. The possible values are defined in pbs_ifl.h as:

  • #define USER_HOLD "u" β€” available to the owner of the job, the batch operator, and the batch administrator πŸ‘‘
  • #define OTHER_HOLD "o" β€” available to the batch operator and the batch administrator ✨
  • #define SYSTEM_HOLD "s" β€” available only to the batch administrator πŸ”

If hold_type is either a null pointer or points to a null string, USER_HOLD will be released 🫢.

The parameter extend is reserved for implementation defined extensions πŸ’œ.

πŸ¦‹ SEE ALSO πŸ¦‹

Go check out qrls(1B), qhold(1B), qalter(1B), pbs_alterjob(3B), pbs_connect(3B), and pbs_holdjob(3B) β€” iykyk ✨.

πŸ’€ DIAGNOSTICS πŸ’€

When the batch request generated by the pbs_rlsjob() function has been completed successfully by a batch server, the routine will return 0 (zero) β€” slay πŸ’…. Otherwise, a non zero error is returned. The error number is also set in pbs_errno 😭.


Signed off from the Local corner of PBS β€” source/version vibes: Local, PBS; page: pbs_rlsjob(3B); date: not printed in the original, so that’s a mystery bestie πŸŽ€πŸ’œ

πŸ“¦ where this page comes from