<div dir="ltr"><br><br><div class="gmail_quote">On Tue, Aug 19, 2008 at 7:51 PM, Chris Samuel <span dir="ltr"><<a href="mailto:csamuel@vpac.org">csamuel@vpac.org</a>></span> wrote:<br><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
<div class="Ih2E3d"><br>
----- "Jon Akers" <<a href="mailto:jka@hpc.ufl.edu">jka@hpc.ufl.edu</a>> wrote:<br>
<br>
> By default, the rerunnable flag is set to true on all jobs. We would<br>
> like this to be set to false be default on all jobs, and if the user<br>
> wants it to be set to rerunnable they can flag it as true in their job<br>
> script. Is there a way in which we can do this?<br>
<br>
</div>It appears to be hard coded into src/cmds/qsub.c :<br>
<br>
int r_opt = FALSE;<br>
<br>
[...]<br>
<br>
if (r_opt == FALSE)<br>
set_attr(&attrib,ATTR_r,"TRUE");<br>
<br>
So you *might* just be able to change that initialisation<br>
statement and the rest of the logic *should* work. :-)<br>
<br>
YMMV, caveat emptor, batteries not included..</blockquote></div><br><br><br>so I've just added a torque.cfg parameter called RERUNNABLEBYDEFAULT (I'm open to suggestions for a better name) to trunk in svn (so this change will appear in TORQUE 2.4). <br>
<br>if this parameter is set to false in torque.cfg:<br><br>RERUNNABLEBYDEFAULT false<br><br>then it alters the default behavior of setting rerunnable to true if the rerunnable option is not specified.<br><br>If you want to change the default behavior before TORQUE 2.4.0 is released, please follow Chris's suggestion quoted above - changing set_attr(&attrib,ATTR_r,"TRUE"); to set_attr(&attrib,ATTR_r,"FALSE"); will chage the default value of the rerunnable option to FALSE.<br>
<br><br>-glen</div>