-
Notifications
You must be signed in to change notification settings - Fork 12
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 additional batch job timestamps #556
base: draft
Are you sure you want to change the base?
Conversation
… the corresponding STAC results. #542
An useful addition to track the time a batch job takes without workarounds, thanks! By the way, to add those field to the STAC results we would have to use this extension right? https://github.com/stac-extensions/timestamps/ |
@clausmichele Only for expires, all others are not defined in that extension. Due to slightly different meaning, it could also be omitted. |
Co-authored-by: Serge Croisé <[email protected]>
Co-authored-by: Serge Croisé <[email protected]>
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.
minor suggestion
openapi.yaml
Outdated
type: string | ||
format: date-time | ||
description: >- | ||
Time until which the assets are accessible, in UTC. Formatted as |
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.
Time until which the assets are accessible, in UTC. Formatted as | |
Time until which the assets (e.g., batch job results) are available for download, in UTC. Formatted as |
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 might be a bit misleading.
expires can be used for when the signed URLs expire and also for when the data is deleted, I think. That's why I chose accessible. The addition in brackets is fine though.
Time until which the assets are accessible, in UTC. Formatted as | |
Time until which the assets (e.g., batch job results) are accessible, in UTC. Formatted as |
Maybe we should actually split into expires and unpublished, i.e.
- expires: signed URL expiry (if relevant here?) but in STAC it's that...
- unpublished: when the data gets deleted
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.
ok good point.
But indeed, we should separate the expiry of signed URLs (which can be refreshed easily) and the expiry for download availability in general (which is final and non-recoverable).
I think the general availability of results should be a global property on GET /jobs/{job_id}
or GET /jobs/{job_id}/results
, while the signed URL expiry should be closer to the links/URLs themselves (e.g. different signed URLs within the same resource might have different expiry for some advanced reason)
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.
Okay, I've updated the PR accordingly:
- Clarified usage of expires, removed from the batch job info endoint
- Added unpublished to batch job info endpoint and batch job results
- Added all the timestamps also to the Collection-typed result response, previously it was only defined in the Item-typed result response
Co-authored-by: Serge Croisé <[email protected]>
Implements #542
Reasoning for the fields based on the discussion in #542 and the existing fields (created, updated, expires):
All properties are optional except for created.
created, updated and expires are somewhat aligned in their meaning with STAC. queued and started don't exist in STAC.