Skip to content
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 optional transfer step to dataset DAG #259

Merged
merged 8 commits into from
Dec 20, 2024
Merged

Conversation

ividito
Copy link
Contributor

@ividito ividito commented Nov 20, 2024

Addresses #256

If transfer: true is included in the dataset DAG payload, assets will be transferred to the production bucket prior to discovery and STAC item creation.

dry_run is set to True by default - this should be changed before merging, but is better for testing.

@ividito ividito force-pushed the feat/transfer-in-dataset-dag branch from 3326f46 to 389aa9a Compare December 4, 2024 18:46
@ividito
Copy link
Contributor Author

ividito commented Dec 4, 2024

Rebased on dev to incorporate recent dataset DAG changes - needs testing + re-review.

@ividito ividito marked this pull request as ready for review December 4, 2024 18:48
@ividito ividito force-pushed the feat/transfer-in-dataset-dag branch from 0d13062 to ff49699 Compare December 18, 2024 20:06
config = {
**payload,
**ti.dag_run.conf,
"origin_bucket": payload.get("bucket", ti.dag_run.conf.get("origin_bucket", "veda-data-store")),
Copy link
Contributor

Choose a reason for hiding this comment

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

should the origin here be veda-data-store-staging

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Not necessarily, doing it this way allows us to promote/transfer datasets where assets are stored in other buckets (I was thinking of some of the COVID dashboard collections here, but there could be others)

@amarouane-ABDELHAK amarouane-ABDELHAK deleted the feat/transfer-in-dataset-dag branch December 20, 2024 14:32
@ividito ividito restored the feat/transfer-in-dataset-dag branch December 20, 2024 14:48
@ividito ividito reopened this Dec 20, 2024
Copy link
Contributor

@amarouane-ABDELHAK amarouane-ABDELHAK left a comment

Choose a reason for hiding this comment

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

Tested the changes locally and it seems to be working.

@ividito ividito merged commit da0650c into dev Dec 20, 2024
6 checks passed
@ividito ividito deleted the feat/transfer-in-dataset-dag branch December 20, 2024 15:09
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.

3 participants