Skip to content

pg_file.py: wait for Globus task completion on Quasar copies; bump ve… - #118

Merged
zaihuaji merged 1 commit into
mainfrom
hua-work-common
Aug 24, 2026
Merged

zaihuaji merged 1 commit into
mainfrom
hua-work-common

Conversation

@zaihuaji

Copy link
Copy Markdown
Collaborator

…rsion to 3.0.10

backup_copy_local() returned the FINISH status of a still-active dsglobus transfer, so callers such as dsarch's Quasar restore treated a partially downloaded tar file as complete. It now blocks until the task reports SUCCEEDED. copy_gdex_file() has the same problem for uploads and none of its callers handle FINISH, so its backup branches go through the new wait_copy_backup() helper; local_copy_backup() is left as is because dsarch and dsquasar wait on their own.

…rsion to 3.0.10

backup_copy_local() returned the FINISH status of a still-active dsglobus
transfer, so callers such as dsarch's Quasar restore treated a partially
downloaded tar file as complete. It now blocks until the task reports
SUCCEEDED. copy_gdex_file() has the same problem for uploads and none of its
callers handle FINISH, so its backup branches go through the new
wait_copy_backup() helper; local_copy_backup() is left as is because dsarch
and dsquasar wait on their own.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
Copilot AI lite review requested due to automatic review settings August 24, 2026 23:27
@zaihuaji
zaihuaji merged commit 536b49d into main Aug 24, 2026
2 checks passed

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

This PR fixes a correctness issue in Quasar (Globus) copy operations where a still-active transfer could return FINISH, leading callers to treat partially transferred files as complete. It updates the Quasar copy paths to block until the Globus task reports SUCCEEDED, and bumps the package version accordingly.

Changes:

  • Route local→Quasar backup uploads in copy_gdex_file() through a new wait_copy_backup() helper so callers don’t receive FINISH.
  • Update backup_copy_local() to wait for Globus task completion before returning.
  • Bump project version from 3.0.9 to 3.0.10.

Reviewed changes

Copilot reviewed 2 out of 2 changed files in this pull request and generated no comments.

File Description
src/rda_python_common/pg_file.py Adds a wait-for-completion helper and ensures Quasar Globus transfers complete before returning success to callers.
pyproject.toml Bumps library version to reflect the behavioral fix.

💡 Add a code-review agent skill or configure MCP servers for context-aware, tailored reviews. Learn more in the docs.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants