Platform Analytics 7 Dataflow

LSF Pending Reason loader

LSF API being called for pending reason loader:

int lsb_init(char *appname); Initializes the LSF batch library (LSBLIB), and obtains the configuration environment.

hostInfo *ls_gethostinfo(char *resreq, int *numhosts, char **hostlist, int listsize, int options); This is similar to calling the lshosts command.

struct lsInfo *ls_info(void); Returns a pointer to an lsInfo structure.

struct jobInfoHead *lsb_openjobinfo_a(LS_LONG_INT jobId, char *jobName, char *userName, char *queueName, char *hostName, int options); This is similar to calling the bjobs -a command.

struct jobInfoEnt *lsb_readjobinfo(int *more); Returns the next job information record in mbatchd.

char *lsb_pendreason (int numReasons, int *rsTb, struct jobInfoHead *jInfoH, struct loadIndexLog *ld, int clusterId);This is similar to calling the bjobs -p command.

void lsb_closejobinfo(void); Closes the job information connection with the master batch daemon.