Parcourir la source

added hpc job counting script

Avik Datta il y a 4 ans
Parent
commit
cd0e5ece91
1 fichiers modifiés avec 7 ajouts et 0 suppressions
  1. 7 0
      scripts/hpc/count_active_jobs_in_hpc.py

+ 7 - 0
scripts/hpc/count_active_jobs_in_hpc.py

@@ -0,0 +1,7 @@
+import json
+from igf_airflow.hpc_queue import get_pbspro_job_count
+
+if __name__=='__main__':
+  hpc_jobs = get_pbspro_job_count(job_name_prefix='')
+  hpc_jobs = json.dump(hpc_job)
+  print(hpc_job)