rda-python-dsquasar 3.0.16__tar.gz → 3.0.18__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 (20) hide show
  1. {rda_python_dsquasar-3.0.16/src/rda_python_dsquasar.egg-info → rda_python_dsquasar-3.0.18}/PKG-INFO +1 -1
  2. {rda_python_dsquasar-3.0.16 → rda_python_dsquasar-3.0.18}/pyproject.toml +1 -1
  3. {rda_python_dsquasar-3.0.16 → rda_python_dsquasar-3.0.18}/src/rda_python_dsquasar/dsquasar.py +8 -3
  4. {rda_python_dsquasar-3.0.16 → rda_python_dsquasar-3.0.18/src/rda_python_dsquasar.egg-info}/PKG-INFO +1 -1
  5. {rda_python_dsquasar-3.0.16 → rda_python_dsquasar-3.0.18}/LICENSE +0 -0
  6. {rda_python_dsquasar-3.0.16 → rda_python_dsquasar-3.0.18}/MANIFEST.in +0 -0
  7. {rda_python_dsquasar-3.0.16 → rda_python_dsquasar-3.0.18}/README.md +0 -0
  8. {rda_python_dsquasar-3.0.16 → rda_python_dsquasar-3.0.18}/setup.cfg +0 -0
  9. {rda_python_dsquasar-3.0.16 → rda_python_dsquasar-3.0.18}/src/rda_python_dsquasar/__init__.py +0 -0
  10. {rda_python_dsquasar-3.0.16 → rda_python_dsquasar-3.0.18}/src/rda_python_dsquasar/ds_quasar.py +0 -0
  11. {rda_python_dsquasar-3.0.16 → rda_python_dsquasar-3.0.18}/src/rda_python_dsquasar/dsquasar.usg +0 -0
  12. {rda_python_dsquasar-3.0.16 → rda_python_dsquasar-3.0.18}/src/rda_python_dsquasar/dstacc.py +0 -0
  13. {rda_python_dsquasar-3.0.16 → rda_python_dsquasar-3.0.18}/src/rda_python_dsquasar/taccrec.py +0 -0
  14. {rda_python_dsquasar-3.0.16 → rda_python_dsquasar-3.0.18}/src/rda_python_dsquasar/tacctar.py +0 -0
  15. {rda_python_dsquasar-3.0.16 → rda_python_dsquasar-3.0.18}/src/rda_python_dsquasar.egg-info/SOURCES.txt +0 -0
  16. {rda_python_dsquasar-3.0.16 → rda_python_dsquasar-3.0.18}/src/rda_python_dsquasar.egg-info/dependency_links.txt +0 -0
  17. {rda_python_dsquasar-3.0.16 → rda_python_dsquasar-3.0.18}/src/rda_python_dsquasar.egg-info/entry_points.txt +0 -0
  18. {rda_python_dsquasar-3.0.16 → rda_python_dsquasar-3.0.18}/src/rda_python_dsquasar.egg-info/requires.txt +0 -0
  19. {rda_python_dsquasar-3.0.16 → rda_python_dsquasar-3.0.18}/src/rda_python_dsquasar.egg-info/top_level.txt +0 -0
  20. {rda_python_dsquasar-3.0.16 → rda_python_dsquasar-3.0.18}/test/test_dsquasar.py +0 -0
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: rda_python_dsquasar
3
- Version: 3.0.16
3
+ Version: 3.0.18
4
4
  Summary: RDA Python package to backup and recover RDA data archives to and from GLOBUS Quasar backup server
5
5
  Author-email: Zaihua Ji <zji@ucar.edu>
6
6
  Project-URL: Homepage, https://github.com/NCAR/rda-python-dsquasar
@@ -4,7 +4,7 @@ build-backend = "setuptools.build_meta"
4
4
 
5
5
  [project]
6
6
  name = "rda_python_dsquasar"
7
- version = "3.0.16"
7
+ version = "3.0.18"
8
8
  authors = [
9
9
  { name="Zaihua Ji", email="zji@ucar.edu" },
10
10
  ]
@@ -1071,8 +1071,9 @@ class DsQuasar(PgCMD, PgSplit):
1071
1071
  if not dstat: self.pglog("Error Quaser Drdata for " + fmsg, self.ERRACT|self.LOGERR)
1072
1072
  bstat = self.quasar_multiple_transfer(tofiles, fromfiles, 'gdex-quasar', 'gdex-glade', self.ERRACT)
1073
1073
  if not bstat: self.pglog("Error Quaser Backup for " + fmsg, self.ERRACT|self.LOGERR)
1074
- if dstat == self.FINISH: dstat = self.check_globus_finished(tofiles[0], 'gdex-quasar-drdata', self.ERRACT|self.NOWAIT)
1075
- if bstat == self.FINISH: bstat = self.check_globus_finished(tofiles[0], 'gdex-quasar', self.ERRACT|self.NOWAIT)
1074
+ tcnt = len(tofiles)
1075
+ if dstat == self.FINISH: dstat = self.check_globus_finished(tofiles[0], 'gdex-quasar-drdata', self.ERRACT|self.NOWAIT, tcnt)
1076
+ if bstat == self.FINISH: bstat = self.check_globus_finished(tofiles[0], 'gdex-quasar', self.ERRACT|self.NOWAIT, tcnt)
1076
1077
  if dstat and bstat:
1077
1078
  for fromfile in fromfiles:
1078
1079
  tarfile = self.PGLOG['DSSDATA'] + fromfile
@@ -1408,7 +1409,11 @@ class DsQuasar(PgCMD, PgSplit):
1408
1409
  # them before any work, and -A 3 does a third one before tarring
1409
1410
  self.check_batch_deadline()
1410
1411
  dsid = pgrec['dsid']
1411
- if unlock and pgrec['pid'] and self.lock_dataset(dsid, 0, self.LOGACT) < 1: continue
1412
+ # a changed-file run takes records that are already backed up (bid > 0) while the
1413
+ # main runs take new files (bid = 0), so it shares no record with the worker holding
1414
+ # the lock and must not skip the dataset for it
1415
+ if unlock and pgrec['pid'] and not self.PGBACK['chgdays']:
1416
+ if self.lock_dataset(dsid, 0, self.LOGACT) < 1: continue
1412
1417
  fcnt += self.get_dataset_files(dsid, dsfiles, pgrec['backflag'], logact, sizes)
1413
1418
  if dsfiles:
1414
1419
  s = 's' if fcnt > 1 else ''
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: rda_python_dsquasar
3
- Version: 3.0.16
3
+ Version: 3.0.18
4
4
  Summary: RDA Python package to backup and recover RDA data archives to and from GLOBUS Quasar backup server
5
5
  Author-email: Zaihua Ji <zji@ucar.edu>
6
6
  Project-URL: Homepage, https://github.com/NCAR/rda-python-dsquasar