-
Notifications
You must be signed in to change notification settings - Fork 52
Description
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.
datatools-server/src/main/java/com/conveyal/datatools/common/utils/Scheduler.java
Line 139 in 5b1d618
| public static void scheduleAutoFeedFetch (Project project, int intervalInDays) { |