-
Notifications
You must be signed in to change notification settings - Fork 2
product skipping and general uplift #62
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
Conversation
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.
Thanks Alex :)
sar_pipeline/aws/cli.py
Outdated
| required=False, | ||
| is_flag=True, | ||
| default=False, | ||
| help="Skip the creating burst products if it already exist in the desired s3 bucket path. " |
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.
Skip creating the burst products if they already exist in the desired S3 bucket path.
| default=False, | ||
| help="Skip the creating burst products if it already exist in the desired s3 bucket path. " | ||
| "Warning - false may result in duplicate products", | ||
| ) |
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.
WARNING - setting this argument to False may result in duplicate products.
| "--skip-existing-products", | ||
| required=False, | ||
| is_flag=True, | ||
| default=False, |
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.
Do we want the default to be False?
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.
Yeah this is a good question. I guess it depends where duplicates should be handles. E.g. if reprocessing is done and new products are released, should we reprocess and handle duplicates later? Can discuss in our meeting today.
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.
changed to make-existing-products which by default is set to False
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.
Looks good to me -- just two minor suggestions.
sar_pipeline/aws/metadata/stac.py
Outdated
| burst_id=self.burst_id, | ||
| ) | ||
| else: | ||
| raise ValueError() |
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.
Is it worth putting an error message here?
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.
Removed and changed to an if and elif, it will already be covered by
| self.product = self._check_valid_product(product) |
| month of burst acquisition | ||
| day : str | ||
| day of burst acquisition | ||
| """ |
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.
Can you add a return statement to the doc string?
--skip-existing-productsflag to search and skip products if they already exist in s3--skip-upload-to-s3to specify skipping the upload to s3 alonedemtodem_type