enhancementhelp wanted
Métricas do repositório
- Stars
- (6 stars)
- Métricas de merge de PR
- (Nenhuma PRs mesclada em 30d)
Description
A persisting queue will allow the script to fail and/or be cancelled, and resumed later. It will also make hafas-generate-gtfs work in memory-constrained environments, or with very large areas.
Changes necessary:
- Specify all tasks (departures fetching, trips fetching) in a JSON-serialisable format. (
['fetch-trip', tripId, lineName], etc). - Implement an in-memory store for stops, lines & trips (see API below).
- Switch from
queueto a persisting one. (I'd like to trybullmq.) Also mention in the readme that Redis is required.
store API
{
hasStop: async id => Boolean,
getStop: async id => Stop,
putStop: async (id, stop) => {},
// same with lines & trips
}