Hi @adarsh - thanks for the suggestion.
The example doesn’t seem to return the defaults when set as a queuejob hook though.
The queue I am submitting to has the following settings:
queue_type = Execution
total_jobs = 0
state_count = Transit:0 Queued:0 Held:0 Waiting:0 Running:0 Exiting:0 Begun
acl_host_enable = False
from_route_only = False
resources_max.walltime = 240:00:00
resources_min.walltime = 00:00:00
resources_default.ncpus = 1
resources_default.walltime = 01:00:00
default_chunk.ncpus = 1
resources_assigned.mem = 0gb
resources_assigned.mpiprocs = 0
resources_assigned.ncpus = 0
resources_assigned.nodect = 0
hasnodes = True
enabled = True
started = True
If I submit a job with
qsub -q test_queue
Job script will be read from standard input. Submit with CTRL+D.
and don’t specify the nodes or the ncpus then in the queuejob hook
I suppose what I want to know is when are the defaults for ncpus and nodes set, and how do I access them from a queuejob hook?