Skip to content

Commit

Permalink
Fix vehicle positions ingestor, clear the list after each file upload
Browse files Browse the repository at this point in the history
How could I fuck up so much, huh?
  • Loading branch information
VMois committed Apr 27, 2024
1 parent 472a3d4 commit 597536f
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions gtfs_realtime_ingestor/ingest_vehicle_positions.py
Original file line number Diff line number Diff line change
Expand Up @@ -118,6 +118,7 @@ def extract_vehicle_location():

df = pl.DataFrame(flattened_data).unique(keep="last")

flattened_data.clear()
object_path = f"realtime/vehicle_{current_hash}.csv"
logger.debug(f"Uploading chunks to GCS as {object_path}.")
blob = bucket.blob(object_path)
Expand Down

0 comments on commit 597536f

Please sign in to comment.