Enhance missing trips #24
Loading…
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
I see problem: if there are trips that need to be enhanced, since the 3 services are started at the same time, the initial GTFS generation will miss them. This is a race condition between amarillo and generator.
I have the code to enhance missing/updated trips on startup
63edfc2734475b224462Confirmed, this happens very easily

Possible solution: generator should not create GTFS immediately on startup, but wait for a /export call that is sent out by amarillo-core when all is ready
Possible solution #2: control startup dependencies using docker compose
https://docs.docker.com/compose/how-tos/startup-order/
I think it is better doing it this way, as this can also solve many more similar issues that might come up.
E.g if stops loading is too slow, enhancements on startup can time out (I have not seen this happen yet)