You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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()
The text was updated successfully, but these errors were encountered:
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)
if name=='main':
main()
The text was updated successfully, but these errors were encountered: