0

When I try to submit a job using the python drmaa wrapper, I get a DeniedByDrmException: code 17: job rejected: positive submission priority requires operator privileges.

How do I change the priority of jobs that I submit using the Python DRMAA wrapper?

Sandman
  • 5,432
  • 5
  • 20
  • 23

2 Answers2

0

Created a ~/.sge_request file with a -p parameter set to 0.

Sandman
  • 5,432
  • 5
  • 20
  • 23
0

You can submit native options to drmaa.

documentation http://drmaa-python.readthedocs.io/en/latest/drmaa.html#drmaa.JobTemplate.nativeSpecification

example:

with drmaa.Session() as s:    
    jt = s.createJobTemplate()
    # set priority and any other options
    jt.nativeSpecification = '-p 5'
    jt.remoteCommand = <job_script>
sk8asd123
  • 1,665
  • 16
  • 14