Skip to content

Control GTFS fetch frequency for FeedSource #346

@landonreed

Description

@landonreed

Currently, there is no way to control fetch frequency for a FeedSource. An individual FeedSource with FeedSource#retrievalMethod set to FETCH_AUTOMATICALLY will check once per day according to the time set in Project#autoFetchHour/Minute.

We need to accommodate for feeds that need to be fetched at a greater frequency than daily, i.e., once per minute. This could be controlled with a new field for FeedSource#fetchFrequency (probably) with values that resolve to an Enum (or perhaps using TimeUnit or some other, if this is easily serializable).

Scheduler#scheduleAutoFeedFetch currently schedules fetches for all feeds in a project, so this may need to be refactored to allow for specialized fetching at a variety of intervals.

public static void scheduleAutoFeedFetch (Project project, int intervalInDays) {

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions