Changeset 71 for trunk/pbs_drmaa/job.c


Ignore:
Timestamp:
09/05/12 22:48:10 (12 years ago)
Author:
mmamonski
Message:

PBS Pro PBSE_HISTJOBID handled properlly

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/pbs_drmaa/job.c

    r68 r71  
    208208                conn_lock = fsd_mutex_lock( &self->session->drm_connection_mutex ); 
    209209retry: 
     210                if (session->pbs_conn < 0) { 
     211                        fsd_log_info(("No connection with pbs. Reconnecting")); 
     212                        goto retry_connect; 
     213                } 
     214 
    210215 
    211216#ifdef PBS_PROFESSIONAL 
     
    226231#else 
    227232#  ifndef PBS_PROFESSIONAL_NO_LOG 
    228                         if ( pbs_errno != PBSE_UNKJOBID ) 
     233                        if ( pbs_errno != PBSE_UNKJOBID && pbs_errno != PBSE_HISTJOBID ) 
    229234                                fsd_log_error(("pbs_statjob error: %d, %s", pbs_errno, pbse_to_txt(pbs_errno))); 
    230235                        else 
    231236                                fsd_log_debug(("pbs_statjob error: %d, %s", pbs_errno, pbse_to_txt(pbs_errno))); 
    232237#  else 
    233                         if ( pbs_errno != PBSE_UNKJOBID ) 
     238                        if ( pbs_errno != PBSE_UNKJOBID && pbs_errno != PBSE_HISTJOBID ) 
    234239                                fsd_log_error(("pbs_statjob error: %d", pbs_errno)); 
    235240                        else 
     
    241246                         { 
    242247                                case PBSE_UNKJOBID: 
     248#ifdef PBS_PROFESSIONAL 
     249                                case PBSE_HISTJOBID: 
     250#endif 
    243251                                        break; 
    244252                                case PBSE_PROTOCOL: 
     
    259267                                         { 
    260268                                                if (tries_left--) { 
    261                                                         fsd_log_info(("%d tries left. Retrying...", tries_left)); 
     269                                                        fsd_log_info(("Retrying... (%d tries left)", tries_left)); 
    262270                                                        goto retry_connect; 
    263271                                                } else { 
Note: See TracChangeset for help on using the changeset viewer.