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

Improvement/Refresh frequency for data sources #872

Closed
buixor opened this issue Jul 28, 2021 · 1 comment
Closed

Improvement/Refresh frequency for data sources #872

buixor opened this issue Jul 28, 2021 · 1 comment
Assignees
Labels
kind/enhancement New feature or request

Comments

@buixor
Copy link
Contributor

buixor commented Jul 28, 2021

When scenarios/parsers are using data:source_url directives, it would be nice to be able to specify a "refresh" period (ie. "24h", "30d" etc.)

cscli hub upgrade (and similar sub-commands) would then check the file timestamp against a given refresh period.

if the refresh period is reached, it would then automatically re-download the resource, allowing users running cscli hub upgrade on a regular basis to ensure that they keep up-to-date resources.

@buixor buixor added the kind/enhancement New feature or request label Jul 28, 2021
@LaurenceJJones LaurenceJJones self-assigned this Nov 16, 2022
@LaurenceJJones
Copy link
Contributor

We added support to official sceanarios, in short when upgrade is ran it will send a HEAD request to the hub CDN to get a last modified timestamp if the file on disk is long out of date it will then proceed to download said resources again.

The user cannot control the pull timings, as this is purely done through http headers

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
kind/enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants