rda-python-dscheck 1.0.5__tar.gz → 1.0.6__tar.gz

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (17) hide show
  1. {rda_python_dscheck-1.0.5 → rda_python_dscheck-1.0.6}/PKG-INFO +1 -1
  2. {rda_python_dscheck-1.0.5 → rda_python_dscheck-1.0.6}/pyproject.toml +1 -1
  3. {rda_python_dscheck-1.0.5 → rda_python_dscheck-1.0.6}/src/rda_python_dscheck/PgCheck.py +4 -16
  4. {rda_python_dscheck-1.0.5 → rda_python_dscheck-1.0.6}/src/rda_python_dscheck.egg-info/PKG-INFO +1 -1
  5. {rda_python_dscheck-1.0.5 → rda_python_dscheck-1.0.6}/LICENSE +0 -0
  6. {rda_python_dscheck-1.0.5 → rda_python_dscheck-1.0.6}/MANIFEST.in +0 -0
  7. {rda_python_dscheck-1.0.5 → rda_python_dscheck-1.0.6}/README.md +0 -0
  8. {rda_python_dscheck-1.0.5 → rda_python_dscheck-1.0.6}/setup.cfg +0 -0
  9. {rda_python_dscheck-1.0.5 → rda_python_dscheck-1.0.6}/src/rda_python_dscheck/__init__.py +0 -0
  10. {rda_python_dscheck-1.0.5 → rda_python_dscheck-1.0.6}/src/rda_python_dscheck/dscheck.py +0 -0
  11. {rda_python_dscheck-1.0.5 → rda_python_dscheck-1.0.6}/src/rda_python_dscheck/dscheck.usg +0 -0
  12. {rda_python_dscheck-1.0.5 → rda_python_dscheck-1.0.6}/src/rda_python_dscheck.egg-info/SOURCES.txt +0 -0
  13. {rda_python_dscheck-1.0.5 → rda_python_dscheck-1.0.6}/src/rda_python_dscheck.egg-info/dependency_links.txt +0 -0
  14. {rda_python_dscheck-1.0.5 → rda_python_dscheck-1.0.6}/src/rda_python_dscheck.egg-info/entry_points.txt +0 -0
  15. {rda_python_dscheck-1.0.5 → rda_python_dscheck-1.0.6}/src/rda_python_dscheck.egg-info/requires.txt +0 -0
  16. {rda_python_dscheck-1.0.5 → rda_python_dscheck-1.0.6}/src/rda_python_dscheck.egg-info/top_level.txt +0 -0
  17. {rda_python_dscheck-1.0.5 → rda_python_dscheck-1.0.6}/tests/test_dscheck.py +0 -0
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: rda_python_dscheck
3
- Version: 1.0.5
3
+ Version: 1.0.6
4
4
  Summary: RDA python package to add and process batch jobs
5
5
  Author-email: Zaihua Ji <zji@ucar.edu>
6
6
  Project-URL: Homepage, https://github.com/NCAR/rda-python-dscheck
@@ -4,7 +4,7 @@ build-backend = "setuptools.build_meta"
4
4
 
5
5
  [project]
6
6
  name = "rda_python_dscheck"
7
- version = "1.0.5"
7
+ version = "1.0.6"
8
8
  authors = [
9
9
  { name="Zaihua Ji", email="zji@ucar.edu" },
10
10
  ]
@@ -471,7 +471,6 @@ def update_dscheck_time(pgrec, ltime, logact = 0):
471
471
  info = PgSIG.get_pbs_info(pgrec['pid'], 0, logact)
472
472
  if info:
473
473
  stat = info['State']
474
- if stat == 'Q': stat = 'P'
475
474
  if stat != pgrec['status']: record['status'] = stat
476
475
  else:
477
476
  if pgrec['lockhost'] != PgLOG.PGLOG['HOSTNAME']: return # connot update dscheck time
@@ -810,19 +809,10 @@ def get_pbs_options(pgrec, limit = 0, logact = 0):
810
809
  #
811
810
  def get_pbsqueue_option(pgrec):
812
811
 
813
- cidx = pgrec['cindex']
814
- for pname in PBSQUEUES:
815
- if PBSQUEUES[pname]:
816
- aname = pname
817
- else:
818
- qname = pname
819
- pcnt = PgDBI.pgget("dscheck", '', "status = 'P' AND pbsqueue = '{}'".format(qname))
820
- if pcnt > 1: qname = aname
821
- if pgrec['pbsqueue'] != qname:
822
- PgDBI.pgexec("UPDATE dscheck SET pbsqueue = '{}' WHERE cindex = {}".format(qname, cidx))
823
- pgrec['pbsqueue'] = qname
812
+ qname = pgrec['pbsqueue']
813
+ if qname in PBSQUEUES: return PBSQUEUES[qname]
824
814
 
825
- return PBSQUEUES[qname]
815
+ return None
826
816
 
827
817
  #
828
818
  # build individual option string for given option name
@@ -889,9 +879,7 @@ def fill_dscheck_info(ckrec, pid, host, logact = 0):
889
879
  record['pid'] = pid
890
880
  if host == PgLOG.PGLOG['PBSNAME']:
891
881
  info = PgSIG.get_pbs_info(pid, 0, logact, 2)
892
- if info:
893
- stat = info['State']
894
- if stat == 'Q': stat = 'P'
882
+ if info: stat = info['State']
895
883
  else:
896
884
  record['runhost'] = PgLOG.PGLOG['HOSTNAME']
897
885
  record['bid'] = 0
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: rda_python_dscheck
3
- Version: 1.0.5
3
+ Version: 1.0.6
4
4
  Summary: RDA python package to add and process batch jobs
5
5
  Author-email: Zaihua Ji <zji@ucar.edu>
6
6
  Project-URL: Homepage, https://github.com/NCAR/rda-python-dscheck