pbs_movejob(3B)
π NAME π
pbs_movejob β move a pbs batch job to a new destination πβ¨
okay so this page is from the PBS manual set, and it's literally all about relocating your job. slay.
β¨ SYNOPSIS β¨
#include <pbs_error.h>
#include <pbs_ifl.h>
int pbs_movejob(int connect, char *job_id, char *destination,
char *extend)
like, that's the whole signature bestie, no cap π«Ά
π¦ DESCRIPTION π¦
so basically you're issuing a batch request to move a job to a new destination π . the job gets removed from the present queue and instantiated in a new queue. it's giving "we're moving, pack your bags" energy fr fr.
a Move Job batch request is generated and sent to the server over the connection specified by connect, which is literally the return value of pbs_connect(). iykyk π
here's the cast of characters π:
job_idβ this one identifies which job is getting moved. it's specified in the form:sequence_number.serverβdestinationβ the new destination for the job. it's specified as:[queue][@server]. and the way this works is honestly so flexible:- if
destinationis a null pointer or a null string, the destination will be the default queue at the current server π - if
destinationspecifies a queue but not a server, the destination will be the named queue at the current server - if
destinationspecifies a server but not a queue, the destination will be the default queue at the named server - if
destinationspecifies both a queue and a server, the destination is that queue at that server π₯
- if
π¨ big mood warning: a job in theRunning,Transiting, orExitingstate cannot be moved. like, it's busy, leave it alone ππ
extendβ this parameter is reserved for implementation defined extensions. it's not doing anything for you rn, it's just chillin' π
πΈ SEE ALSO πΈ
go read these too bestie, they're iconic π:
qmove(1B)qsub(1B)pbs_connect(3B)
π DIAGNOSTICS π
when the batch request generated by the pbs_movejob() function has been completed successfully by a batch server, the routine will return 0 (zero) β periodt, we love a clean win πβ¨
otherwise, a non zero error is returned. and the error number is also set in pbs_errno so you can go peek at it ππ
and that's the whole vibe check, bestie π§π this page lives in the Local corner of the PBS docs, filed under pbs_movejob(3B) β catch you on the next move π¦β
π¦ 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