當我嘗試使用python drmaa包裝提交作業時,出現DeniedByDrmException:代碼17:作業被拒絕:正面提交優先級需要操作員權限。使用python drmaa wrapper更改SGE中的作業優先級
如何更改我使用Python DRMAA包裝提交的作業的優先級?
當我嘗試使用python drmaa包裝提交作業時,出現DeniedByDrmException:代碼17:作業被拒絕:正面提交優先級需要操作員權限。使用python drmaa wrapper更改SGE中的作業優先級
如何更改我使用Python DRMAA包裝提交的作業的優先級?
創建一個〜/ .sge_request下文件設置爲0
一個-p參數您可以提交本地選項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>