Bug 138 - pbs TCL scheduler command "pbsalterjob" fails to alter job attributes
: pbs TCL scheduler command "pbsalterjob" fails to alter job attributes
Status: NEW
Product: TORQUE
: 2.4.x
: All Linux
: P5 normal
Assigned To: John Rosenquist
  Show dependency treegraph
Reported: 2011-06-22 13:13 MDT by Kevin Van Workum
Modified: 2011-06-22 13:13 MDT (History)
1 user (show)

See Also:



You need to log in before you can comment on or make changes to this bug.

Description Kevin Van Workum 2011-06-22 13:13:39 MDT

The pbsalterjob command provided by the TCL version of pbs_sched fails to
change job attributes. This applies to versions 2.4.12, 2.5.6, and 3.0.1

Steps to Reproduce

1) Build tcl version of the scheduler

2) Include a call to pbsalterjob in the sched_tcl script which attempts to
modify an attribute. For example:

pbsalterjob $jobid {{Job_Name not_used new_job_name}}

Actual Results

A PBS server internal error (15011) is generated with the text value e.g.

Expected Results

pbsalterjob should change the job attribute.


Set the attribute's "op" value to SET in the PBS_AlterJob function in

# diff -c pbs_tclWrap.c pbs_tclWrap.c.fixed
*** pbs_tclWrap.c       2011-06-22 15:16:21.000000000 -0400
--- pbs_tclWrap.c.fixed 2011-06-22 10:19:31.000000000 -0400
*** 1250,1255 ****
--- 1250,1256 ----
      atp->resource = strdup(Tcl_GetStringFromObj(indp[1], NULL));
      atp->value = strdup(Tcl_GetStringFromObj(indp[2], NULL));
      atp->next = attrs;
+     atp->op = SET;
      attrs = atp;