rda-python-dscheck 1.0.4__tar.gz → 1.0.5__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.4 → rda_python_dscheck-1.0.5}/PKG-INFO +1 -1
- {rda_python_dscheck-1.0.4 → rda_python_dscheck-1.0.5}/pyproject.toml +1 -1
- {rda_python_dscheck-1.0.4 → rda_python_dscheck-1.0.5}/src/rda_python_dscheck/PgCheck.py +11 -22
- {rda_python_dscheck-1.0.4 → rda_python_dscheck-1.0.5}/src/rda_python_dscheck.egg-info/PKG-INFO +1 -1
- {rda_python_dscheck-1.0.4 → rda_python_dscheck-1.0.5}/LICENSE +0 -0
- {rda_python_dscheck-1.0.4 → rda_python_dscheck-1.0.5}/MANIFEST.in +0 -0
- {rda_python_dscheck-1.0.4 → rda_python_dscheck-1.0.5}/README.md +0 -0
- {rda_python_dscheck-1.0.4 → rda_python_dscheck-1.0.5}/setup.cfg +0 -0
- {rda_python_dscheck-1.0.4 → rda_python_dscheck-1.0.5}/src/rda_python_dscheck/__init__.py +0 -0
- {rda_python_dscheck-1.0.4 → rda_python_dscheck-1.0.5}/src/rda_python_dscheck/dscheck.py +0 -0
- {rda_python_dscheck-1.0.4 → rda_python_dscheck-1.0.5}/src/rda_python_dscheck/dscheck.usg +0 -0
- {rda_python_dscheck-1.0.4 → rda_python_dscheck-1.0.5}/src/rda_python_dscheck.egg-info/SOURCES.txt +0 -0
- {rda_python_dscheck-1.0.4 → rda_python_dscheck-1.0.5}/src/rda_python_dscheck.egg-info/dependency_links.txt +0 -0
- {rda_python_dscheck-1.0.4 → rda_python_dscheck-1.0.5}/src/rda_python_dscheck.egg-info/entry_points.txt +0 -0
- {rda_python_dscheck-1.0.4 → rda_python_dscheck-1.0.5}/src/rda_python_dscheck.egg-info/requires.txt +0 -0
- {rda_python_dscheck-1.0.4 → rda_python_dscheck-1.0.5}/src/rda_python_dscheck.egg-info/top_level.txt +0 -0
- {rda_python_dscheck-1.0.4 → rda_python_dscheck-1.0.5}/tests/test_dscheck.py +0 -0
|
@@ -370,7 +370,8 @@ def start_dschecks(cnd, logact = 0):
|
|
|
370
370
|
if not CHKHOST['chkhost']: email_dschecks(cnd, logact)
|
|
371
371
|
purge_dschecks(cnd, logact)
|
|
372
372
|
|
|
373
|
-
if 'NC' in PgOPT.params or not CHKHOST['chkhost']: return 0
|
|
373
|
+
# if 'NC' in PgOPT.params or not CHKHOST['chkhost']: return 0
|
|
374
|
+
if 'NC' in PgOPT.params: return 0
|
|
374
375
|
if CHKHOST['isbatch'] and 'CP' in PgOPT.params: check_dscheck_pends(cnd, logact)
|
|
375
376
|
# set_dscheck_options(CHKHOST['chkhost'], cnd, logact)
|
|
376
377
|
reset_process_limits()
|
|
@@ -406,10 +407,7 @@ def check_dscheck_locks(cnd, logact = 0):
|
|
|
406
407
|
dtime = ltime - PgSIG.PGSIG['DTIME']
|
|
407
408
|
ctime = ltime - PgSIG.PGSIG['CTIME']
|
|
408
409
|
rtime = ltime - PgSIG.PGSIG['RTIME']
|
|
409
|
-
|
|
410
|
-
cnd += "lockhost {} AND (stttime = 0 OR chktime < {})".format(CHKHOST['hostcond'], dtime)
|
|
411
|
-
else:
|
|
412
|
-
cnd += "chktime > 0 AND (chktime < {} OR chktime < {} AND lockhost = '{}' OR chktime < {} AND lockhost = 'rda_config')".format(ctime, dtime, lochost, rtime)
|
|
410
|
+
cnd += "chktime > 0 AND (chktime < {} OR chktime < {} AND lockhost = '{}' OR chktime < {} AND lockhost = 'rda_config')".format(ctime, dtime, lochost, rtime)
|
|
413
411
|
|
|
414
412
|
pgrecs = PgDBI.pgmget("dscheck", "*", cnd, logact)
|
|
415
413
|
cnt = (len(pgrecs['cindex']) if pgrecs else 0)
|
|
@@ -941,8 +939,8 @@ def skip_dscheck_record(pgrec, host, logact = 0):
|
|
|
941
939
|
def start_dsrqsts(cnd, logact = 0):
|
|
942
940
|
|
|
943
941
|
check_dsrqst_locks(cnd, logact)
|
|
944
|
-
if CHKHOST['chkhost']: return 1
|
|
945
|
-
email_dsrqsts(cnd, logact)
|
|
942
|
+
# if CHKHOST['chkhost']: return 1
|
|
943
|
+
if not CHKHOST['chkhost']: email_dsrqsts(cnd, logact)
|
|
946
944
|
purge_dsrqsts(cnd, logact)
|
|
947
945
|
rcnd = cnd
|
|
948
946
|
rcnd += ("status = 'Q' AND rqsttype <> 'C' AND (pid = 0 OR pid < ptcount) AND " +
|
|
@@ -1114,10 +1112,7 @@ def check_dsrqst_locks(cnd, logact = 0):
|
|
|
1114
1112
|
dtime = ltime - PgSIG.PGSIG['DTIME']
|
|
1115
1113
|
ctime = ltime - PgSIG.PGSIG['CTIME']
|
|
1116
1114
|
rtime = ltime - PgSIG.PGSIG['RTIME']
|
|
1117
|
-
|
|
1118
|
-
cnd += "lockhost {} AND locktime < {}".format(CHKHOST['hostcond'], dtime)
|
|
1119
|
-
else:
|
|
1120
|
-
cnd += "locktime > 0 AND (locktime < {} OR locktime < {} AND lockhost = '{}' OR locktime < {} AND lockhost = 'rda_config')".format(ctime, dtime, lochost, rtime)
|
|
1115
|
+
cnd += "locktime > 0 AND (locktime < {} OR locktime < {} AND lockhost = '{}' OR locktime < {} AND lockhost = 'rda_config')".format(ctime, dtime, lochost, rtime)
|
|
1121
1116
|
check_partition_locks(cnd, ltime, logact) # check partitions first
|
|
1122
1117
|
|
|
1123
1118
|
pgrecs = PgDBI.pgmget("dsrqst", "rindex, lockhost, pid, locktime", cnd, logact)
|
|
@@ -1259,9 +1254,9 @@ def start_dsupdts(cnd, logact = 0):
|
|
|
1259
1254
|
|
|
1260
1255
|
ctime = PgUtil.curtime(1)
|
|
1261
1256
|
check_dsupdt_locks(cnd, logact)
|
|
1262
|
-
if CHKHOST['chkhost']:
|
|
1263
|
-
|
|
1264
|
-
|
|
1257
|
+
if not CHKHOST['chkhost']:
|
|
1258
|
+
email_dsupdt_controls(cnd, logact)
|
|
1259
|
+
email_dsupdts(cnd, logact)
|
|
1265
1260
|
|
|
1266
1261
|
cnd += "pid = 0 and cntltime <= '{}' and action > '' AND einfo IS NULL ORDER by cntltime".format(ctime)
|
|
1267
1262
|
pgrecs = PgDBI.pgmget("dcupdt", "*", cnd, logact)
|
|
@@ -1325,10 +1320,7 @@ def check_dsupdt_locks(ocnd, logact = 0):
|
|
|
1325
1320
|
cnd = ocnd + "pid > 0 AND "
|
|
1326
1321
|
ctime = ltime - 4*PgSIG.PGSIG['CTIME']
|
|
1327
1322
|
rtime = ltime - PgSIG.PGSIG['RTIME']
|
|
1328
|
-
|
|
1329
|
-
cnd += "lockhost {} AND chktime < {}".format(CHKHOST['hostcond'], dtime)
|
|
1330
|
-
else:
|
|
1331
|
-
cnd += "chktime > 0 AND (chktime < {} OR chktime < {} AND lockhost = '{}' OR chktime < {} AND lockhost = 'rda_config')".format(ctime, dtime, lochost, rtime)
|
|
1323
|
+
cnd += "chktime > 0 AND (chktime < {} OR chktime < {} AND lockhost = '{}' OR chktime < {} AND lockhost = 'rda_config')".format(ctime, dtime, lochost, rtime)
|
|
1332
1324
|
|
|
1333
1325
|
pgrecs = PgDBI.pgmget("dcupdt", "cindex, lockhost, pid, chktime", cnd, logact)
|
|
1334
1326
|
cnt = (len(pgrecs['cindex']) if pgrecs else 0)
|
|
@@ -1359,10 +1351,7 @@ def check_dsupdt_locks(ocnd, logact = 0):
|
|
|
1359
1351
|
if cnt > 1: PgLOG.pglog("{} of {} DSUPDT Controls unlocked on {}".format(lcnt, cnt, PgLOG.PGLOG['HOSTNAME']), PgLOG.WARNLG)
|
|
1360
1352
|
|
|
1361
1353
|
cnd = ocnd + "pid > 0 AND locktime > 0 AND "
|
|
1362
|
-
|
|
1363
|
-
cnd += "hostname {} AND locktime < {}".format(CHKHOST['hostcond'], dtime)
|
|
1364
|
-
else:
|
|
1365
|
-
cnd += "(locktime < {} OR locktime < {} AND hostname = '{}' OR locktime < {} AND hostname = 'rda_config')".format(ctime, dtime, lochost, rtime)
|
|
1354
|
+
cnd += "(locktime < {} OR locktime < {} AND hostname = '{}' OR locktime < {} AND hostname = 'rda_config')".format(ctime, dtime, lochost, rtime)
|
|
1366
1355
|
|
|
1367
1356
|
pgrecs = PgDBI.pgmget("dlupdt", "lindex, hostname, pid, locktime", cnd, logact)
|
|
1368
1357
|
cnt = (len(pgrecs['lindex']) if pgrecs else 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.4 → rda_python_dscheck-1.0.5}/src/rda_python_dscheck.egg-info/SOURCES.txt
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
{rda_python_dscheck-1.0.4 → rda_python_dscheck-1.0.5}/src/rda_python_dscheck.egg-info/requires.txt
RENAMED
|
File without changes
|
{rda_python_dscheck-1.0.4 → rda_python_dscheck-1.0.5}/src/rda_python_dscheck.egg-info/top_level.txt
RENAMED
|
File without changes
|
|
File without changes
|