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.
- {rda_python_dscheck-1.0.5 → rda_python_dscheck-1.0.6}/PKG-INFO +1 -1
- {rda_python_dscheck-1.0.5 → rda_python_dscheck-1.0.6}/pyproject.toml +1 -1
- {rda_python_dscheck-1.0.5 → rda_python_dscheck-1.0.6}/src/rda_python_dscheck/PgCheck.py +4 -16
- {rda_python_dscheck-1.0.5 → rda_python_dscheck-1.0.6}/src/rda_python_dscheck.egg-info/PKG-INFO +1 -1
- {rda_python_dscheck-1.0.5 → rda_python_dscheck-1.0.6}/LICENSE +0 -0
- {rda_python_dscheck-1.0.5 → rda_python_dscheck-1.0.6}/MANIFEST.in +0 -0
- {rda_python_dscheck-1.0.5 → rda_python_dscheck-1.0.6}/README.md +0 -0
- {rda_python_dscheck-1.0.5 → rda_python_dscheck-1.0.6}/setup.cfg +0 -0
- {rda_python_dscheck-1.0.5 → rda_python_dscheck-1.0.6}/src/rda_python_dscheck/__init__.py +0 -0
- {rda_python_dscheck-1.0.5 → rda_python_dscheck-1.0.6}/src/rda_python_dscheck/dscheck.py +0 -0
- {rda_python_dscheck-1.0.5 → rda_python_dscheck-1.0.6}/src/rda_python_dscheck/dscheck.usg +0 -0
- {rda_python_dscheck-1.0.5 → rda_python_dscheck-1.0.6}/src/rda_python_dscheck.egg-info/SOURCES.txt +0 -0
- {rda_python_dscheck-1.0.5 → rda_python_dscheck-1.0.6}/src/rda_python_dscheck.egg-info/dependency_links.txt +0 -0
- {rda_python_dscheck-1.0.5 → rda_python_dscheck-1.0.6}/src/rda_python_dscheck.egg-info/entry_points.txt +0 -0
- {rda_python_dscheck-1.0.5 → rda_python_dscheck-1.0.6}/src/rda_python_dscheck.egg-info/requires.txt +0 -0
- {rda_python_dscheck-1.0.5 → rda_python_dscheck-1.0.6}/src/rda_python_dscheck.egg-info/top_level.txt +0 -0
- {rda_python_dscheck-1.0.5 → rda_python_dscheck-1.0.6}/tests/test_dscheck.py +0 -0
|
@@ -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
|
-
|
|
814
|
-
|
|
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
|
|
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
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
{rda_python_dscheck-1.0.5 → rda_python_dscheck-1.0.6}/src/rda_python_dscheck.egg-info/SOURCES.txt
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
{rda_python_dscheck-1.0.5 → rda_python_dscheck-1.0.6}/src/rda_python_dscheck.egg-info/requires.txt
RENAMED
|
File without changes
|
{rda_python_dscheck-1.0.5 → rda_python_dscheck-1.0.6}/src/rda_python_dscheck.egg-info/top_level.txt
RENAMED
|
File without changes
|
|
File without changes
|