Source
October 21, 2024, 7:24am
1
Hi,
one can easily to modify the job (or add new) entries through qalter without any problem.
e.g
$ qalter -l select=1:ncpus=10 <jobid>
$ qalter -W stagein=.@submithost:/tmp/a.out <jobid>
Just curious, could we remove some defined attributes (e.g remove stagein entry) from a job via qalter?
btw, leaving the rvalue blank is not the correct way as it yields to the following error.
$ qalter -W stagein= <jobid>
qalter: illegal -W value
usage: qalter [-a date_time] [-A account_string] [-c interval] [-e path]
[-h hold_list] [-j y|n] [-k keep] [-l resource_list]
[-m mail_options] [-M user_list] [-N jobname] [-o path] [-p priority]
[-R o|e|oe] [-r y|n] [-S path] [-u user_list] [-W dependency_list]
[-P project_name] job_identifier..
adarsh
October 22, 2024, 12:05pm
2
qalter has some limitation and also not all attributes of PBS can be changed, some are readonly
Source
October 23, 2024, 7:47am
3
I apologise for not making the post clear enough. sorry, I didnt get you. did i mentioned i cant change the attributes? i only want to unset the resource entry that is changeable.
adarsh
October 26, 2024, 8:38am
4
Unsetting os stagein is unsupported by qalter. You can update its values assigned to the attribute
[pbsdata@pbsserver ~]$ qsub -l select=1:ncpus=5 -- /bin/sleep 100
6606.pbsserver
[pbsdata@pbsserver ~]$ qstat -f 6606 | grep -i stagein
[pbsdata@pbsserver ~]$ qalter -W stagein=exec.py@pbsserver:/home/pbsdata/exe.py 6606
[pbsdata@pbsserver ~]$ qstat -f 6606 | grep -i stagein
stagein = exec.py@pbsserver:/home/pbsdata/exe.py
[pbsdata@pbsserver ~]$ qalter -W stagein=test.py@pbsserver:/home/pbsdata/test.py 6606
[pbsdata@pbsserver ~]$ qstat -f 6606 | grep -i stagein
stagein = test.py@pbsserver:/home/pbsdata/test.py
[pbsdata@pbsserver ~]$ qalter -W stagein="" 6606
qalter: illegal -W value
usage: qalter [-a date_time] [-A account_string] [-c interval] [-e path]
[-h hold_list] [-j y|n] [-k keep] [-l resource_list]
[-m mail_options] [-M user_list] [-N jobname] [-o path] [-p priority]
[-R o|e|oe] [-r y|n] [-S path] [-u user_list] [-W dependency_list]
[-P project_name] job_identifier...
qalter --version