drmaa.errors.DeniedByDrmException: код 17: работа отклонена: в вашем запросе нет сценария

Когда я использовал python-drmaa для отправки задачи, у меня возникла проблема, как показано ниже:

добавить параметр -clear в jt.nativeSpecification мы получили проблему, как сказал заголовок.

удалить параметр -clear, все прошло хорошо.

пожалуйста, дайте мне несколько подсказок по этому вопросу. Спасибо большое.

#!/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()

0 ответов

Другие вопросы по тегам