huggingface / dataset-viewer

Backend that powers the dataset viewer on Hugging Face dataset pages through a public API.
https://huggingface.co/docs/dataset-viewer
Apache License 2.0
696 stars 78 forks source link

warm the cache #34

Closed severo closed 3 years ago

severo commented 3 years ago

Warm the cache at application startup. We want:

severo commented 3 years ago

Since https://github.com/huggingface/datasets-preview-backend/releases/tag/0.8.6, the cache is persisted (in /home/hf/.cache/datasets_preview_backend by default). make warm allows to warm the cache, but when I launched it on the server I lost access to it (see https://betteruptime.com/team/14149/incidents/166660371). We can check the current state of the warming process by querying:

severo commented 3 years ago

Done