[torquedev] qalter with blank walltimes sets walltime to zero

David Singleton David.Singleton at anu.edu.au
Wed Jun 18 16:21:58 MDT 2008


Chris Samuel wrote:
> ----- "Garrick Staples" <garrick at usc.edu> wrote:
> 
>> There are lots of ways to typo and break things.  Not all of them need
>> to be "fixed" :)
> 
> But it seems a bug that Torque would let you set an
> invalid walltime on a job - it even seems to ignore
> a queues minimum walltime. :-(
> 

Certainly OpenPBS ignored the queue resource minimums.

void set_resc_deflt(job *pjob)
{
         pbs_queue *pque = pjob->ji_qhdr;
         assert(pque != (pbs_queue *)0);

         set_deflt_resc(&pjob->ji_wattr[(int)JOB_ATR_resource],
                        &pque->qu_attr[(int)QA_ATR_ResourceDefault]);
         set_deflt_resc(&pjob->ji_wattr[(int)JOB_ATR_resource],
                        &server.sv_attr[(int)SRV_ATR_resource_deflt]);
         set_deflt_resc(&pjob->ji_wattr[(int)JOB_ATR_resource],
                        &pque->qu_attr[(int)QA_ATR_ResourceMax]);
         set_deflt_resc(&pjob->ji_wattr[(int)JOB_ATR_resource],
                        &server.sv_attr[(int)SRV_ATR_ResourceMax]);
}

I think that this is consistent and logical.

David


More information about the torquedev mailing list