Skip to content
This repository was archived by the owner on Apr 27, 2026. It is now read-only.
This repository was archived by the owner on Apr 27, 2026. It is now read-only.

Clean up these uploads if error encountered? #31

Description

@godotgildor

Currently, we upload the RunInfo.xml and sample sheet in this script. We then call the dx_sync_directory.py. If we encounter an error in that (say it throws an exception) then we will have not uploaded any files except these two. The next time the upload routine occurs, we'll upload these two files again, encounter the error again, an it will carry on ad infinitum. Should we at least consider cleaning up these two files if the call to dx_sync_directory.py fails?

https://github.com/dnanexus-rnd/dx-streaming-upload/blob/8fec7ae047504b6b39996dd52e52dd684306e518/files/incremental_upload.py#L359-L362

Activity

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions