Opened 12 years ago
Closed 10 years ago
#31 closed defect (invalid)
pbs_submit can not work with torque 3.0
Reported by: | xiaomou@… | Owned by: | bas |
---|---|---|---|
Priority: | major | Milestone: | |
Component: | pbs | Version: | 4.3.3 |
Keywords: | pbs_submit | Cc: |
Description
pbs_python version 4.3.3, torque version 3.0.x, python version 2.7 PBSQuery works very well, but pbs_submit always fails. When I ran the following sample code, it always reports: 1 15044 Resources temporarily unavailable None
Sample test code:
import pbs
pbs_server = pbs.pbs_default () pbsconn = pbs.pbs_connect (pbs_server)
print pbsconn
attrl = pbs.new_attropl(1) attrl[0].name = pbs.ATTR_N attrl[0].value = "test"
task_id = pbs.pbs_submit(pbsconn, attrl, "A1.tsk", , 'NULL')
e, e_txt = pbs.error() if e:
print e,e_txt
print task_id
Thanks
Attachments (0)
Change History (5)
comment:1 Changed 12 years ago by bas
comment:2 follow-up: ↓ 3 Changed 11 years ago by steve.mcmahon@…
I am also seeing this. I have to use Torque 4.x clients to talk to a cluster running Torque 4.x.
Any update on this? I could look at regenerating the swig interface if that helps.
comment:3 in reply to: ↑ 2 Changed 11 years ago by bas
Replying to steve.mcmahon@…:
I am also seeing this. I have to use Torque 4.x clients to talk to a cluster running Torque 4.x.
Any update on this? I could look at regenerating the swig interface if that helps.
Did you try my suggestion?
job_id = pbs.pbs_submit(c, attropl, "A1.tsk", 'batch', 'NULL')
I have setup a 4.1 test cluster. I will test if i can submit a job via python.
comment:4 Changed 11 years ago by bas
ok just tested it on:
- ii torque 4.1.3-6 Tera-scale Open-source Resource and QUEue manager
- ii pbs-python 4.3.4-1 python API for the Torque library
bas@gb-r7n1:~/src/python$ python submit.py 1 None None 9.gb-r7n1.irc.sara.nl bas@gb-r7n1:~/src/python$ qstat -a gb-r7n1.irc.sara.nl: Req'd Req'd Elap Job ID Username Queue Jobname SessID NDS TSK Memory Time S Time -------------------- ----------- -------- ---------------- ------ ----- ------ ------ -------- - -------- 9.gb-r7n1.irc.sa bas express test 31905 1 1 -- 00:01:00 R --
example file:
import pbs pbs_server = pbs.pbs_default () pbsconn = pbs.pbs_connect (pbs_server) print pbsconn attrl = pbs.new_attropl(1) attrl[0].name = pbs.ATTR_N attrl[0].value = "test" task_id = pbs.pbs_submit(pbsconn, attrl, "A1.tsk", 'batch', 'NULL') print pbs.pbs_geterrmsg(pbsconn) print task_id
good luck
comment:5 Changed 10 years ago by bas
- Resolution set to invalid
- Status changed from new to closed
Torque 3.0 won't be supported + the code was wrong
The syntax on the help page is wrong. You must specify a route queue:
I hav e to port pbs_Python to a newer version of torque. I still use version 2.4.