-
Notifications
You must be signed in to change notification settings - Fork 54
Make virtual chunk staleness check opt out #480
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
Make virtual chunk staleness check opt out #480
Conversation
virtualizarr/writers/icechunk.py
Outdated
| # Icechunk checksums currently store with second precision, so we need to make sure | ||
| # the checksum_date is at least one second in the future | ||
| timestamp_checksum = datetime.now(timezone.utc) + timedelta(seconds=1) | ||
|
|
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.
@mpiannucci I feel like this +1 second business should be in the test, rather than in the business logic?
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.
Yes I agree
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 actually came to the opposite conclusion on a call just now. The long comments in the code hopefully explain our reasoning.
for more information, see https://pre-commit.ci
|
The |
docs/releases.rstNew functions/methods are listed inapi.rstNew functionality has documentation