webcomponents / webcomponents.org

Home of the web components community
https://www.webcomponents.org
Apache License 2.0
356 stars 95 forks source link

Add catalog-server endpoint to update packages #1392

Open justinfagnani opened 1 year ago

justinfagnani commented 1 year ago

WIP

This PR adds a /update-packages endpoint to the catalog server.

The endpoint updates packages that have not been updated since a certain interval (default 6 hours), in batches (default 100), until a certain amount of request processing time has passed (default 5 minutes).

The idea is that a cron-like job will call this endpoint regularly, synchronized with the update interval.

There is a force query parameter that disables the update intervals so that we can update packages that we just imported

A few open questions: