Skip to content

Commit 6cb0898

Browse files
authored
fix: bounding box not saved when reverse location fails (#1612)
1 parent 0b0df1a commit 6cb0898

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

functions-python/reverse_geolocation/src/reverse_geolocation_processor.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -359,6 +359,9 @@ def reverse_geolocation_process(
359359
stops_df=stops_df,
360360
db_session=db_session,
361361
)
362+
# Commit the bounding box update to the database before the reverse geolocation extraction.
363+
# This ensures that the bounding box is updated even if the reverse geolocation processing fails.
364+
db_session.commit()
362365

363366
location_groups = reverse_geolocation(
364367
strategy=strategy,

0 commit comments

Comments
 (0)