IBM

lsb_readjobinfo_cond

Returns the next job information record for condensed host groups in mbatchd.

lsb_readjobinfo_cond reads the number of records defined by the more parameter. The more parameter receives its value from either lsb_openjobinfo or lsb_openjobinfo_a. Each time lsb_readjobinfo_cond is called, it returns one record from mbatchd. Use lsb_readjobinfo_cond in a loop and use more to determine how many times to repeat the loop to retrieve job information records.

lsb_readjobinfo_cond differs from lsb_readjobinfo in that if jInfoHExt is not NULL, lsb_readjobinfo_cond substitutes hostGroup (if it is a condensed host group) for job execution hosts.

#include <lsf/lsbatch.h>
#include <time.h>
#include <lsf/lsf.h>

struct jobInfoEnt *lsb_readjobinfo_cond(int *more, struct jobInfoHeadExt *jInfoHExt);

Parameters:
*more Number of job records in the master batch daemon.
*jInfoHExt Job information header info for the condensed host group.
Data Structures:
jobInfoEnt
jobExternalMsgReply
jRusage
pidInfo
reserveItem
submit
Define Statements:
external_msg_processing
group_nodetypes
Returns:
struct jobInfoEnt *:A pointer to job information entry.
Function was successful.

NULL
Function failed.

Errors:
If there are no more records, then lsberrno is set to LSBE_EOF.
Equivalent line commands:
none
Files:
$LSB_CONFDIR/cluster_name/configdir/lsb.queues
See also:
lsb_openjobinfo

lsb_openjobinfo_a

lsb_closejobinfo

lsb_hostinfo

lsb_pendreason

lsb_queueinfo

lsb_readjobinfo

lsb_suspreason



     
Date Modified: 16 Jul 2014

Terms of Use
Copyright © 1994-2014 International Business Machines Corp.
US Government Users Restricted Rights - Use, duplication or disclosure
restricted by GSA ADP Schedule Contract with IBM Corp.