drmaa-python icon indicating copy to clipboard operation
drmaa-python copied to clipboard

drmaa.errors.DeniedByDrmException: code 17: job rejected: no script in your request

Open liuyaming1 opened this issue 7 years ago • 0 comments

add -clear parameter in <jt.nativeSpecification>, we got problem as title said. remove -clear parameter, everything went well. please give me some clue about this issue. THANKS.

script: #!/usr/bin/env python

import drmaa import os

def main(): """ Submit a job. Note, need file called sleeper.sh in current directory. """ with drmaa.Session() as s: print('Creating job template') jt = s.createJobTemplate() jt.workingDirectory = os.getcwd() jt.remoteCommand = os.path.join(os.getcwd(), 'test.sh') jt.nativeSpecification = "-clear -binding linear:1 -P MASSspe -q bc.q -cwd -l vf=0.5g -l num_proc=1" #jt.nativeSpecification = "-binding linear:1 -P MASSspe -q bc.q -cwd -l vf=0.5g -l num_proc=1" jobid = s.runJob(jt) print('Your job has been submitted with ID %s' % jobid)

    print('Cleaning up')
    s.deleteJobTemplate(jt)

if name=='main': main()

liuyaming1 avatar Jun 28 '18 07:06 liuyaming1