IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Changeset 23514


Ignore:
Timestamp:
Mar 25, 2009, 11:13:41 AM (17 years ago)
Author:
eugene
Message:

move Npending increment to CreateJob; check for submit status

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/eam_branches/eam_branch_20090322/Ohana/src/opihi/pantasks/JobOps.c

    r23484 r23514  
    149149    REALLOCATE (jobs, Job *, NJOBS);
    150150  }
     151
     152  /* increment job counters */
     153  task[0].Npending ++;
     154
    151155  return (jobs[Njobs-1]);
    152156}
     
    245249int SubmitJob (Job *job) {
    246250
     251  int status;
     252
    247253  if (job[0].mode == JOB_LOCAL) {
    248254    if (DEBUG) fprintf (stderr, "submit job: (%zx) %d of %d\n", (size_t) job[0].stdout_buff.buffer, job[0].stdout_buff.Nbuffer, job[0].stdout_buff.Nalloc);
    249     SubmitLocalJob (job);
     255    status = SubmitLocalJob (job);
    250256  } else {
    251     SubmitControllerJob (job);
     257    status = SubmitControllerJob (job);
     258  }
     259  if (!status) {
     260    return FALSE;
    252261  }
    253262
Note: See TracChangeset for help on using the changeset viewer.