Opened 11 years ago

Closed 11 years ago

#27 closed task (fixed)

Unknown queue name error

Reported by: Philip Knaute Owned by: bas
Priority: major Milestone:
Component: pbs Version: 4.3.0
Keywords: Unknown queue name Cc:


Dear Bas, I hope it is OK to post a question regarding pbs_pyhon on here. I couldn't find a mailing list or something similar.

I installed pbs_python and all the examples run fine, so far. But whenever I try to submit a job I get the error '15018 Unknown queue name'.

The queue name I give with attropl[4].name = pbs.ATTR_q attropl[4].value = 'auto' (I also tried appending following line, even if I wasn't sure what it does : attropl[4].op = pbs.EQ )

is a valid queue name that works perfectly in a pbs script with #PBS -q auto

I also tried other valid queue names.

ommiting the pbs_ATTR_q didn't help either.

I use job_id = pbs.pbs_submit(c, attropl, "A.tsk", 'NULL', 'NULL') to submit the job and the script A.tsk runs fine if I use "qsub A.tsk" on the command line.

Do you have an idea what I might have missed or not done correctly?

Thank you, Philip

Attachments (0)

Change History (6)

comment:1 Changed 11 years ago by bas

  • Owner changed from Philip to bas
  • Status changed from new to assigned


It is appropiate to ask a question. First i want to know which torque version your are using and did you configure/install your own version of grab one from a software repository?

Can you attach your code?

comment:2 Changed 11 years ago by japoovey@…

I am having the same problem. qsub --version states that it is version 2.3.13. Our system admin installed torque with the following parameters

# Create queues and set their attributes.



# Create and define queue batch


create queue batch

set queue batch queue_type = Execution

set queue batch resources_default.nodes = 1

set queue batch resources_default.walltime = 01:00:00

set queue batch enabled = True

set queue batch started = True


# Set server attributes.


set server scheduling = True

set server acl_hosts = XXXX

set server managers = root@XXXXX

set server operators = root@XXXXX

set server default_queue = batch

set server log_events = 511

set server mail_from = adm

set server scheduler_iteration = 600

set server node_check_rate = 150

set server tcp_timeout = 6

set server mom_job_sync = True

set server keep_completed = 300

set server auto_node_np = True

set server next_job_number = 0

Here is the script I am trying to run:

1 import pbs


3 script_name = ""


5 attropl = pbs.new_attropl(2)


7 attropl[0] .name = pbs.ATTR_q

8 attropl[0] .value = "batch"


10 attropl[1] .name = pbs.ATTR_N

11 attropl[1] .value = "date_test"



14 server_name = pbs.pbs_default()

15 c = pbs.pbs_connect(server_name)

16 job_id = pbs.pbs_submit(c,attropl,script_name,'NULL','NULL')


18 e, e_txt = pbs.error()

19 if e:

20 print e,e_txt

21 else:

22 print "Submitted PBS Job " + str(job_id)

Finally, printing the status of all queues, using pbs_statque gives: Name: batch Desc: None Attributes:

Name: queue_type Resource: None Value: Execution

Name: total_jobs Resource: None Value: 0

Name: state_count Resource: None Value: Transit:0 Queued:0 Held:0 Waiting:0 Running:0 Exiting:0

Name: resources_default Resource: nodes Value: 1

Name: resources_default Resource: walltime Value: 01:00:00

Name: mtime Resource: None Value: 1307046049

Name: resources_assigned Resource: nodect Value: 0

Name: enabled Resource: None Value: True

Name: started Resource: None Value: True

comment:3 Changed 11 years ago by bas

Oke i have found it. You can not set the queue name in attropl. See manpage:

  • man pbs_submit

The third parameter is the destination. I will adjust the example on the wiki:

#!/usr/bin/env python
import pbs

script_name = ""
attropl = pbs.new_attropl(1)
attropl[0].name = pbs.ATTR_N
attropl[0].value = "jobscript"

server_name = pbs.pbs_default()
c = pbs.pbs_connect(server_name)

job_id = pbs.pbs_submit(c,attropl,script_name,'q_serial','')
e, e_txt = pbs.error()

#!/usr/bin/env python
import pbs

script_name = ""
attropl = pbs.new_attropl(1)
attropl[0].name = pbs.ATTR_N
attropl[0].value = "jobscript"

server_name = pbs.pbs_default()
c = pbs.pbs_connect(server_name)

job_id = pbs.pbs_submit(c,attropl,script_name,'batch','')
e, e_txt = pbs.error()

if e:
    print e,e_txt
    print "Submitted PBS Job " + str(job_id)

comment:4 Changed 11 years ago by japoovey@…

That fixed it for me.  Thanks!

comment:5 Changed 11 years ago by bas

ok close it

comment:6 Changed 11 years ago by bas

  • Resolution set to fixed
  • Status changed from assigned to closed

Add Comment

Modify Ticket

Change Properties
as closed The owner will remain bas.
The resolution will be deleted. Next status will be 'reopened'.

E-mail address and user name can be saved in the Preferences.

Note: See TracTickets for help on using tickets.