Page MenuHomePhabricator

Setup cron job to update recommendation api collections cache
Open, Needs TriagePublic

Description

The recommendation api maintains a local cache of community-defined page collections and their articles and language links. The cache is currently populated and refreshed hourly by an asyncio task inside one of the service's workers. It should be configured as a background cron job somewhere, leaving the workers free to serve requests.

Event Timeline

This would require a semi-permanent cache somewhere. Cron jobs nor the systemctl equivalent might not be feasible, so maybe it could be a separate service/entry point in the same repo?

This would require a semi-permanent cache somewhere.

I think this task comes after T381438: Caching service request for recommendation api