Skip to content

Commit 1031145

Browse files
feat: create last position flow from ais positions
1 parent 4b72a13 commit 1031145

File tree

12 files changed

+323
-251
lines changed

12 files changed

+323
-251
lines changed
Lines changed: 9 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,12 @@
11
CREATE TABLE public.last_positions
22
(
3-
id SERIAL,
4-
mmsi INT,
5-
coord geometry,
6-
status VARCHAR,
7-
course DOUBLE PRECISION,
8-
heading DOUBLE PRECISION,
9-
speed DOUBLE PRECISION,
10-
ts TIMESTAMPTZ
3+
id SERIAL,
4+
mmsi INT,
5+
vessel_id INT,
6+
coord GEOMETRY,
7+
status VARCHAR,
8+
course DOUBLE PRECISION,
9+
heading DOUBLE PRECISION,
10+
speed DOUBLE PRECISION,
11+
ts TIMESTAMPTZ
1112
);

pipeline/config.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -123,4 +123,4 @@
123123

124124
# Vessel repository XML
125125
VESSEL_FILES_GID = os.getenv("VESSEL_FILES_GID")
126-
VESSEL_FILES_DIRECTORY = "/data/vessel_repository"
126+
VESSEL_FILES_DIRECTORY = "/data/vessel_repository"

pipeline/src/deployments.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -45,6 +45,7 @@
4545
update_departments_and_facades_flow,
4646
)
4747
from src.flows.vessel_repository import vessel_repository_flow
48+
from src.flows.last_positions import last_positions_flow
4849

4950
################################# List flows to deploy ################################
5051

@@ -132,6 +133,7 @@ class FlowAndSchedules:
132133
),
133134
FlowAndSchedules(flow=update_departments_and_facades_flow),
134135
FlowAndSchedules(flow=vessel_repository_flow),
136+
FlowAndSchedules(flow=last_positions_flow),
135137
]
136138

137139
deployments = []

0 commit comments

Comments
 (0)