Timeout jobs on sun grid engine

落花浮王杯 提交于 2019-12-11 07:02:02

问题


I'm running a lot of jobs with sun grid engine (linux). Some of the jobs take a (very) long time to run, and I don't know ahead which ones.

I would like to stop jobs that run for more than, say, 2 hours. Is it possible to run using SGE? Is it possible to do it from the unix shell?

Thanks


回答1:


If you're running the jobs yourself then use the hard wall clock time.

#$ -l h_rt=2:00:00

Where time is hr:min:sec



来源:https://stackoverflow.com/questions/3587053/timeout-jobs-on-sun-grid-engine

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!