Skip to content

Commit

Permalink
Add fetch interval ms column to realtime table
Browse files Browse the repository at this point in the history
  • Loading branch information
kylerchin committed Mar 21, 2024
1 parent 07427d8 commit 3786f81
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 4 deletions.
5 changes: 3 additions & 2 deletions migrations/20240110110356_init.sql
Original file line number Diff line number Diff line change
Expand Up @@ -422,13 +422,14 @@ CREATE TABLE IF NOT EXISTS gtfs.realtime_passwords (
passwords text[],
header_auth_key text,
header_auth_value_prefix text,
url_auth_key text
url_auth_key text,
interval_ms integer
);

CREATE TABLE IF NOT EXISTS gtfs.static_passwords (
onestop_feed_id text NOT NULL PRIMARY KEY,
passwords text[],
header_auth_key text,
header_auth_value_prefix text,
url_auth_key text
url_auth_key text,
);
7 changes: 5 additions & 2 deletions src/maple/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -164,8 +164,8 @@ async fn run_ingest() -> Result<(), Box<dyn Error>> {
// Unzip the file and handle any folder nesting
// process into GTFS representation
// run function to insert GTFS raw data
// use k/d tree presentation to calculate line optimisation and transfer patterns (not clear how this works, needs further research)
// hand off to routing algorithm preprocessing engine Prarie (needs further research and development)
// (todo) use k/d tree presentation to calculate line optimisation and transfer patterns (not clear how this works, needs further research)
// (todo) hand off to routing algorithm preprocessing engine Prarie (needs further research and development)

// 1. update metadata
futures::stream::iter(eligible_feeds.iter()
Expand Down Expand Up @@ -217,6 +217,9 @@ async fn run_ingest() -> Result<(), Box<dyn Error>> {
);

// todo! perform additional checks to ensure feed is not a zip bomb

// create thread pool
// process GTFS and insert into system
}

//determine if the old one should be deleted, if so, delete it
Expand Down

0 comments on commit 3786f81

Please sign in to comment.