rda-python-dscheck 2.0.1__tar.gz → 2.0.3__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 (19) hide show
  1. {rda_python_dscheck-2.0.1 → rda_python_dscheck-2.0.3}/PKG-INFO +1 -1
  2. {rda_python_dscheck-2.0.1 → rda_python_dscheck-2.0.3}/pyproject.toml +1 -1
  3. {rda_python_dscheck-2.0.1 → rda_python_dscheck-2.0.3}/src/rda_python_dscheck/dscheck.py +1 -1
  4. {rda_python_dscheck-2.0.1 → rda_python_dscheck-2.0.3}/src/rda_python_dscheck/pg_check.py +5 -10
  5. {rda_python_dscheck-2.0.1 → rda_python_dscheck-2.0.3}/src/rda_python_dscheck.egg-info/PKG-INFO +1 -1
  6. {rda_python_dscheck-2.0.1 → rda_python_dscheck-2.0.3}/LICENSE +0 -0
  7. {rda_python_dscheck-2.0.1 → rda_python_dscheck-2.0.3}/MANIFEST.in +0 -0
  8. {rda_python_dscheck-2.0.1 → rda_python_dscheck-2.0.3}/README.md +0 -0
  9. {rda_python_dscheck-2.0.1 → rda_python_dscheck-2.0.3}/setup.cfg +0 -0
  10. {rda_python_dscheck-2.0.1 → rda_python_dscheck-2.0.3}/src/rda_python_dscheck/PgCheck.py +0 -0
  11. {rda_python_dscheck-2.0.1 → rda_python_dscheck-2.0.3}/src/rda_python_dscheck/__init__.py +0 -0
  12. {rda_python_dscheck-2.0.1 → rda_python_dscheck-2.0.3}/src/rda_python_dscheck/ds_check.py +0 -0
  13. {rda_python_dscheck-2.0.1 → rda_python_dscheck-2.0.3}/src/rda_python_dscheck/dscheck.usg +0 -0
  14. {rda_python_dscheck-2.0.1 → rda_python_dscheck-2.0.3}/src/rda_python_dscheck.egg-info/SOURCES.txt +0 -0
  15. {rda_python_dscheck-2.0.1 → rda_python_dscheck-2.0.3}/src/rda_python_dscheck.egg-info/dependency_links.txt +0 -0
  16. {rda_python_dscheck-2.0.1 → rda_python_dscheck-2.0.3}/src/rda_python_dscheck.egg-info/entry_points.txt +0 -0
  17. {rda_python_dscheck-2.0.1 → rda_python_dscheck-2.0.3}/src/rda_python_dscheck.egg-info/requires.txt +0 -0
  18. {rda_python_dscheck-2.0.1 → rda_python_dscheck-2.0.3}/src/rda_python_dscheck.egg-info/top_level.txt +0 -0
  19. {rda_python_dscheck-2.0.1 → rda_python_dscheck-2.0.3}/tests/test_dscheck.py +0 -0
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: rda_python_dscheck
3
- Version: 2.0.1
3
+ Version: 2.0.3
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 = "2.0.1"
7
+ version = "2.0.3"
8
8
  authors = [
9
9
  { name="Zaihua Ji", email="zji@ucar.edu" },
10
10
  ]
@@ -435,7 +435,7 @@ class DsCheck(PgCheck):
435
435
  cnd += "specialist = '{}' AND ".format(self.params['LN'])
436
436
  acnd = self.get_hash_condition("dscheck", None, "ST", 1)
437
437
  if acnd: acnd += " AND "
438
- self.set_dscheck_options(self.get_host(1), cnd + acnd, logact)
438
+ self.set_dscheck_options(cnd + acnd, logact)
439
439
  if self.PGLOG['ERRCNT']: self.send_error_email()
440
440
 
441
441
  # rdadata daemon handles the daemon controls
@@ -165,12 +165,10 @@ class PgCheck(PgOPT, PgCMD):
165
165
  self.PGOPT['dscheck'] = "COVTUPFJDNW" # default
166
166
  self.PGOPT['chkall'] = "COVTAUPRBFJKLZDYHNWMIQXE" # default to all
167
167
  self.PGOPT['dsdaemon'] = "ICHQSPO" # default to all
168
- self.PGOPT['waitlimit'] = 280 # limit of C and P request checks at a time
169
- self.PGOPT['totallimit'] = 380 # maximum number of checks can be started on PBS
168
+ self.PGOPT['waitlimit'] = 300 # limit of C and P request checks at a time
169
+ self.PGOPT['totallimit'] = 500 # maximum number of checks can be started on PBS
170
170
  self.PBSQUEUES = {'rda': None, 'htc': 'casper@casper-pbs'}
171
171
  self.PBSTIMES = {'default': 21600, 'rda': self.PGLOG['PBSTIME'], 'htc': 86400}
172
- #self.DOPTHOSTS = {'rda-work': None, 'PBS': ['!subconv -Q']}
173
- self.DOPTHOSTS = {'rda-work': None, 'PBS': None, 'cron': None}
174
172
  self.DSLMTS = {}
175
173
  self.EMLMTS = {}
176
174
 
@@ -771,8 +769,8 @@ class PgCheck(PgOPT, PgCMD):
771
769
  "einfo IS NULL ORDER BY priority, rindex")
772
770
  pgrecs = self.pgmget("dsrqst", "*", rcnd, logact)
773
771
  cnt = (len(pgrecs['rindex']) if pgrecs else 0)
774
- ccnt = self.pgget("dscheck", '', "status = 'C'", logact)
775
- pcnt = self.pgget("dscheck", '', "status = 'P'", logact)
772
+ ccnt = self.pgget("dscheck", '', "command = 'dsrqst' AND status = 'C'", logact)
773
+ pcnt = self.pgget("dscheck", '', "command = 'dsrqst' AND status = 'P'", logact)
776
774
  if (ccnt+pcnt) > self.PGOPT['waitlimit']:
777
775
  if cnt: self.pglog("{}/{} Checks are Waiting/Pending; Add new dscheck records {} later".format(ccnt, pcnt, self.PGLOG['HOSTNAME']),
778
776
  self.LOGWRN|self.FRCLOG)
@@ -816,15 +814,12 @@ class PgCheck(PgOPT, PgCMD):
816
814
  return False
817
815
 
818
816
  # call given command to evaluate dynamically the dscheck.qoptions
819
- def set_dscheck_options(self, chost, cnd, logact):
820
- if chost not in self.DOPTHOSTS: return
817
+ def set_dscheck_options(self, cnd, logact):
821
818
  qcnt = 0
822
- skipcmds = self.DOPTHOSTS[chost]
823
819
  pgrecs = self.pgmget("dscheck", "*", cnd + "pid = 0 AND status = 'C' AND LEFT(qoptions, 1) = '!'", logact)
824
820
  cnt = len(pgrecs['cindex']) if pgrecs else 0
825
821
  for i in range(cnt):
826
822
  pgrec = self.onerecord(pgrecs, i)
827
- if skipcmds and pgrec['qoptions'] in skipcmds: continue # skip
828
823
  if self.lock_dscheck(pgrec['cindex'], 1) <= 0: continue
829
824
  qoptions = self.build_dscheck_options(pgrec, 'qoptions', 'PBS')
830
825
  if not qoptions and pgrec['status'] == 'E': continue # failed evaluating qoptions
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: rda_python_dscheck
3
- Version: 2.0.1
3
+ Version: 2.0.3
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