Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
liuyaming1 opened this issue Jun 28, 2018 · 0 comments

Comments

@liuyaming1
Copy link

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()

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant