Changeset 101


Ignore:
Timestamp:
09/09/15 12:32:11 (4 years ago)
Author:
pkopta
Message:

'x' parameter for PBS Pro pbs_statjob - this allows to get information about finishind and moved jobs

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/pbs_drmaa/pbs_conn.c

    r98 r101  
    294294        volatile bool first_try = true; 
    295295        volatile bool conn_lock = false; 
     296#if defined PBS_PROFESSIONAL 
     297    char *stat_job_extend = "x"; 
     298#else 
     299    char *stat_job_extend = NULL; 
     300#endif 
     301 
    296302 
    297303 
     
    305311 
    306312retry: 
    307                 status = pbs_statjob(self->connection_fd, job_id, attrib, NULL); 
    308  
     313                status = pbs_statjob(self->connection_fd, job_id, attrib, stat_job_extend); 
     314 
     315#if defined PBS_PROFESSIONAL 
     316                fsd_log_info(( "pbs_statjob( fd=%d, job_id=%s, attribs={...}, \"x\" ) = %p", self->connection_fd, job_id, (void*)status)); 
     317#else 
    309318                fsd_log_info(( "pbs_statjob( fd=%d, job_id=%s, attribs={...} ) = %p", self->connection_fd, job_id, (void*)status)); 
     319#endif 
    310320 
    311321                if(status == NULL && pbs_errno) 
Note: See TracChangeset for help on using the changeset viewer.