使用python-drmaa-wrapp更改SGE中作业的优先级

2024-05-21 01:11:25 发布

您现在位置:Python中文网/ 问答频道 /正文

当我尝试使用python drmaa包装器提交作业时,我得到一个DeniedByDrmException:code 17:job rejected:positive submission priority requires operator privileges。你知道吗

如何使用pythondrmaa包装器更改提交的作业的优先级?你知道吗


Tags: submission作业jobcodeoperatorpriorityrequiresdrmaa
2条回答

创建了一个~/.sge\u请求文件,其中-p参数设置为0。你知道吗

您可以向drmaa提交本机选项。你知道吗

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

示例:

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

相关问题 更多 >