【问题标题】:Changing priority of job in SGE using python drmaa wrapper使用 python drmaa 包装器更改 SGE 中的作业优先级
【发布时间】:2015-06-09 04:56:39
【问题描述】:

当我尝试使用 python drmaa 包装器提交作业时,我收到 DeniedByDrmException:代码 17:作业被拒绝:肯定提交优先级需要操作员权限。

如何更改使用 Python DRMAA 包装器提交的作业的优先级?

【问题讨论】:

    标签: python python-2.7 hpc sungridengine drmaa


    【解决方案1】:

    创建了一个 ~/.sge_request 文件,其中 -p 参数设置为 0。

    【讨论】:

      【解决方案2】:

      您可以向 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>
      

      【讨论】:

        猜你喜欢
        • 1970-01-01
        • 1970-01-01
        • 1970-01-01
        • 2012-11-22
        • 2012-02-24
        • 2012-03-03
        • 2011-06-10
        • 1970-01-01
        • 2016-10-03
        相关资源
        最近更新 更多