~ubuntu-branches/ubuntu/precise/torque/precise-updates

« back to all changes in this revision

Viewing changes to src/server/job_route.c

  • Committer: Bazaar Package Importer
  • Author(s): Dominique Belhachemi
  • Date: 2010-05-17 20:56:46 UTC
  • mto: This revision was merged to the branch mainline in revision 8.
  • Revision ID: james.westby@ubuntu.com-20100517205646-yjsoqs5r1s9xpnu9
Tags: upstream-2.4.8+dfsg
ImportĀ upstreamĀ versionĀ 2.4.8+dfsg

Show diffs side-by-side

added added

removed removed

Lines of Context:
102
102
#include "server.h"
103
103
#include "log.h"
104
104
#include "queue.h"
105
 
#include "job.h"
 
105
#include "pbs_job.h"
106
106
#include "credential.h"
107
107
#include "batch_request.h"
108
108
#if __STDC__ != 1
118
118
void queue_route A_((pbs_queue *));
119
119
 
120
120
/* Global Data */
121
 
 
122
 
extern char *msg_badstate;
123
121
extern char *msg_routexceed;
124
 
extern char *msg_routebad;
125
122
extern char *msg_err_malloc;
 
123
extern char *msg_routexceed;
126
124
extern time_t  time_now;
127
125
 
128
126
/*
242
240
          PBSEVENT_JOB,
243
241
          PBS_EVENTCLASS_JOB,
244
242
          jobp->ji_qs.ji_jobid,
245
 
          msg_routebad);
 
243
          pbse_to_txt(PBSE_ROUTEREJ));
246
244
 
247
245
        return(PBSE_ROUTEREJ);
248
246
        }
359
357
 
360
358
    default:
361
359
 
362
 
      sprintf(log_buffer, "%s %d", msg_badstate,
 
360
      sprintf(log_buffer, "%s %d", pbse_to_txt(PBSE_BADSTATE),
363
361
              jobp->ji_qs.ji_state);
364
362
 
365
363
      strcat(log_buffer, id);
481
479
    if (pjob->ji_qs.ji_un.ji_routet.ji_rteretry <= time_now)
482
480
      {
483
481
      if ((rc = job_route(pjob)) == PBSE_ROUTEREJ)
484
 
        job_abt(&pjob, msg_routebad);
 
482
        job_abt(&pjob, pbse_to_txt(PBSE_ROUTEREJ));
485
483
      else if (rc == PBSE_ROUTEEXPD)
486
484
        job_abt(&pjob, msg_routexceed);
487
485
      }