relleums / qstat

parse Grid Engine qstat job info list into a list of python dicts
GNU General Public License v3.0
12 stars 3 forks source link

It is also working with Open Cluster Scheduler #6

Open dgruber opened 3 months ago

dgruber commented 3 months ago

Just tested it with Open Cluster Scheduler and it works. Used a container image (hpcgridware/clusterscheduler-latest-ubuntu2204:eac1ec597) containing Open Cluster Scheduler (detailed description here: https://github.com/dgruber/drmaa/blob/master/dockerfiles/openclusterscheduler/README.md)

Maybe you can mention Open Cluster Scheduler support in your project?

Cheers

Daniel

python3 test.py
sleep is {'@state': 'running', 'JB_job_number': '4', 'JAT_prio': '0.55500', 'JB_name': 'sleep', 'JB_owner': 'root', 'state': 'r', 'JAT_start_time': '2024-06-28T11:59:43.834192', 'queue_name': 'all.q@master', 'slots': '1', 'tasks': '34'}
sleep is {'@state': 'running', 'JB_job_number': '4', 'JAT_prio': '0.55500', 'JB_name': 'sleep', 'JB_owner': 'root', 'state': 'r', 'JAT_start_time': '2024-06-28T11:59:43.904217', 'queue_name': 'all.q@master', 'slots': '1', 'tasks': '35'}
sleep is {'@state': 'running', 'JB_job_number': '4', 'JAT_prio': '0.55500', 'JB_name': 'sleep', 'JB_owner': 'root', 'state': 'r', 'JAT_start_time': '2024-06-28T11:59:43.915557', 'queue_name': 'all.q@master', 'slots': '1', 'tasks': '36'}
sleep is {'@state': 'running', 'JB_job_number': '4', 'JAT_prio': '0.55500', 'JB_name': 'sleep', 'JB_owner': 'root', 'state': 'r', 'JAT_start_time': '2024-06-28T11:59:43.926597', 'queue_name': 'all.q@master', 'slots': '1', 'tasks': '37'}
sleep is {'@state': 'running', 'JB_job_number': '4', 'JAT_prio': '0.55500', 'JB_name': 'sleep', 'JB_owner': 'root', 'state': 'r', 'JAT_start_time': '2024-06-28T11:59:43.941707', 'queue_name': 'all.q@master', 'slots': '1', 'tasks': '38'}
sleep is {'@state': 'running', 'JB_job_number': '4', 'JAT_prio': '0.55500', 'JB_name': 'sleep', 'JB_owner': 'root', 'state': 'r', 'JAT_start_time': '2024-06-28T11:59:43.952828', 'queue_name': 'all.q@master', 'slots': '1', 'tasks': '39'}
sleep is {'@state': 'running', 'JB_job_number': '4', 'JAT_prio': '0.55500', 'JB_name': 'sleep', 'JB_owner': 'root', 'state': 'r', 'JAT_start_time': '2024-06-28T11:59:43.964330', 'queue_name': 'all.q@master', 'slots': '1', 'tasks': '40'}
sleep is {'@state': 'running', 'JB_job_number': '4', 'JAT_prio': '0.55500', 'JB_name': 'sleep', 'JB_owner': 'root', 'state': 'r', 'JAT_start_time': '2024-06-28T11:59:43.979662', 'queue_name': 'all.q@master', 'slots': '1', 'tasks': '41'}
sleep is {'@state': 'running', 'JB_job_number': '4', 'JAT_prio': '0.55500', 'JB_name': 'sleep', 'JB_owner': 'root', 'state': 'r', 'JAT_start_time': '2024-06-28T11:59:43.990396', 'queue_name': 'all.q@master', 'slots': '1', 'tasks': '42'}
sleep is {'@state': 'running', 'JB_job_number': '4', 'JAT_prio': '0.55500', 'JB_name': 'sleep', 'JB_owner': 'root', 'state': 'r', 'JAT_start_time': '2024-06-28T11:59:44.001713', 'queue_name': 'all.q@master', 'slots': '1', 'tasks': '43'}
sleep is {'@state': 'pending', 'JB_job_number': '4', 'JAT_prio': '0.55500', 'JB_name': 'sleep', 'JB_owner': 'root', 'state': 'qw', 'JB_submission_time': '2024-06-28T11:59:27.208411', 'queue_name': None, 'slots': '1', 'tasks': '44-100:1'}
dgruber commented 3 months ago

Here is a link to the "Sun Grid Engine" open source successor Open Grid Scheduler (built by the SGE devs.):

https://github.com/hpc-gridware/clusterscheduler