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

Use data stored in Cloudflare R2 instead of GitHub API for scheduled refresh #2991

Merged
merged 13 commits into from
Jan 13, 2023

Conversation

ludeeus
Copy link
Member

@ludeeus ludeeus commented Jan 12, 2023

The data generated with https://github.com/hacs/integration/blob/main/.github/workflows/generate-hacs-data.yml and https://github.com/hacs/integration/blob/main/scripts/data/generate_category_data.py will now be used as a data source instead of calling the GitHub API for the 2 scheduled tasks that currently take place every 48 and 96 hours after startup.

It will also reduce the time to 6h.

While this adds a new cloud dependency (Cloudflare), it will drastically reduce API usage.

@ludeeus ludeeus added the Experimental For issues related to experimental features label Jan 12, 2023
@ludeeus ludeeus marked this pull request as ready for review January 13, 2023 12:19
@ludeeus ludeeus enabled auto-merge (squash) January 13, 2023 12:20
@ludeeus ludeeus disabled auto-merge January 13, 2023 12:26
@ludeeus ludeeus enabled auto-merge (squash) January 13, 2023 12:29
@ludeeus ludeeus disabled auto-merge January 13, 2023 12:29
@ludeeus ludeeus merged commit 77fb8a8 into main Jan 13, 2023
@ludeeus ludeeus deleted the use-r2 branch January 13, 2023 12:39
@hacs-bot hacs-bot bot added this to the next milestone Jan 13, 2023
@github-actions github-actions bot locked and limited conversation to collaborators Jan 14, 2023
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Experimental For issues related to experimental features
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant