Currently feed updates can only be done periodically. This is optimized for GTFS realtime feeds, where the period is 5 seconds. For GTFS static updates this is not great, as the period should be 24 hours probably, but then one has no control over when the update happens. Given the amount of data being generated, it should happen at night.
We should support a daily update schedule with a specified time e.g. 14:00. The timezone can also be specified manually; if not specified, it defaults to the timezone of the transit system which we can get via the agency resource. We should then have the following defaults:
For GTFS realtime feeds, default to periodic update with a period of 5 seconds.
For all other feeds, default to daily update at a time of (3am + 10 minutes * (feed index)). Using the feed index ensures that updates are not concurrent, which could be messy.
Currently feed updates can only be done periodically. This is optimized for GTFS realtime feeds, where the period is 5 seconds. For GTFS static updates this is not great, as the period should be 24 hours probably, but then one has no control over when the update happens. Given the amount of data being generated, it should happen at night.
We should support a daily update schedule with a specified time e.g.
14:00
. The timezone can also be specified manually; if not specified, it defaults to the timezone of the transit system which we can get via the agency resource. We should then have the following defaults:(3am + 10 minutes * (feed index))
. Using the feed index ensures that updates are not concurrent, which could be messy.