Skip to content

Ap 725 upload dir#86

Open
davezuckerman wants to merge 6 commits into
mainfrom
AP-725-upload-dir
Open

Ap 725 upload dir#86
davezuckerman wants to merge 6 commits into
mainfrom
AP-725-upload-dir

Conversation

@davezuckerman

Copy link
Copy Markdown
Contributor

No description provided.

@awilfox awilfox left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Looking good overall, but a few things we can improve.

Comment thread mokelumne/dags/copy_files.py
Comment thread mokelumne/util/file_transfer.py Outdated
Comment thread test/unit/test_file_transfer.py

@anarchivist anarchivist left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Some additional comments beyond @awilfox's.

Comment thread mokelumne/dags/copy_files.py
Comment thread mokelumne/util/file_transfer.py Outdated

@steve-sullivan steve-sullivan 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.

Looks good to me - I just question that one log line, but not that big of a deal.

Comment thread mokelumne/dags/copy_files.py Outdated

@anarchivist anarchivist left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

a few more minor changes.

Comment thread mokelumne/dags/copy_files.py Outdated
)

# This should be last in the chain
chain(renamed_temp_dir, check_lpsdata, moved_lpsdata_to_uploaded)

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Suggested change
chain(renamed_temp_dir, check_lpsdata, moved_lpsdata_to_uploaded)
chain(renamed_temp_dir, [check_lpsdata, moved_lpsdata_to_uploaded])

@davezuckerman davezuckerman Jul 15, 2026

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

When I pass it in that way (as a list) for some reason it always calls moved_lpsdata_to_upload even if check_lpsdata returns false. When it's passed it as it is currently it has the expected behavior. I think passing it in as a list makes it run in parrallel.

@awilfox awilfox left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Overall looks good, a few minor nits.

Comment thread mokelumne/util/file_transfer.py Outdated
Comment thread mokelumne/util/file_transfer.py Outdated
Comment thread mokelumne/util/file_transfer.py Outdated
…digits it will simply create an Uploaded directory

@anarchivist anarchivist left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

one more comment; sorry for the back and forth on this.

Comment thread mokelumne/util/file_transfer.py Outdated
…digits will create an Uploaded directory as a subdirectory to the source directory
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.

4 participants