-
Notifications
You must be signed in to change notification settings - Fork 168
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add capability of copying files from lustre to s3 bucket on AWS #2873
base: develop
Are you sure you want to change the base?
Conversation
…d hope can provide a better way
…-workflow-cloud into aws-forecast-only
…d hope can provide a better way
…lobal-workflow-cloud into aws-coupled-atm-ocn-ic3-c192
54beedc
to
5dd063a
Compare
7b8961e
to
a06f8d2
Compare
I understand that this PR is far from perfect. |
Unless there is need to populate the bucket right away, I think this is the wrong approach. It will be annoying to add and maintain, and also injects a bunch of unneeded code into production scripts. Instead of adding a bunch of code to all of the jobs that write to COM as you've started here with products, we should do it at the end of the cycle, either by piggybacking on the existing archive job or creating a new job similar to the archive job that only runs on AWS. Then all the copying can be done in one go and in one place segregated from everything else. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I agree with @WalterKolczynski-NOAA's assessment and review.
@WalterKolczynski-NOAA and @aerorahul, |
workflow/rocoto_viewer.py
Outdated
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
We should never update this script in this fashion -- ever.
It is unsupported legacy code that happens to have some vestigial logic on EXPDIR.
These updates are speculative and irrelevant.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
That is a nice catch. I should not do any change here.
I will remove those, even this PR is not going any where.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Right, Just wanted to keep you up to speed.
Opened issue NOAA-EMC/wxflow#42 to add bucket transfer capability to wxflow. |
Description
Add capability to allow global-workflow copying file from lustre to s3 bucket on AWS, and other CSPs.
Resolves #2872
Type of change
Change characteristics
[Wei.Huang@epicweiaws-130 wxflow]$ git diff fsutils.py
diff --git a/src/wxflow/fsutils.py b/src/wxflow/fsutils.py
index af9e5b8..5d6d4da 100644
--- a/src/wxflow/fsutils.py
+++ b/src/wxflow/fsutils.py
@@ -81,6 +81,9 @@ def cp(source: str, target: str) -> None:
if os.path.isdir(target):
target = os.path.join(target, os.path.basename(source))
shutil.copy2(source, target)
(Will file PR, if the general idea is OK with reviewers).
How has this been tested?
Checklist