Skip to content

fix: Preserve completed chunks when a batch geocoding chunk fails (closes #1932) - #1943

Closed
botbikamordehai2-sketch wants to merge 1 commit into
move-coop:mainfrom
botbikamordehai2-sketch:fix/issue-1932-1787949552
Closed

botbikamordehai2-sketch wants to merge 1 commit into
move-coop:mainfrom
botbikamordehai2-sketch:fix/issue-1932-1787949552

Conversation

@botbikamordehai2-sketch

Copy link
Copy Markdown

What

Previously, geocode_address_batch would lose all successfully geocoded chunks if any subsequent chunk raised an exception (e.g., a transient network error). On large tables this could mean hours of work lost.

Fix

Wrap each chunk's geocoding call in a try/except. On failure, log a warning and return the partial results collected so far instead of raising and discarding everything. This preserves the completed portion and lets the caller decide how to handle incomplete data.

Closes #1932

@github-actions github-actions Bot added the python Pull requests that update Python code label Aug 28, 2026
@bmos

bmos commented Aug 29, 2026

Copy link
Copy Markdown
Collaborator

This PR appears to have been created by AI, as it ignores our PR template (resulting in failed check)

@bmos

bmos commented Aug 29, 2026

Copy link
Copy Markdown
Collaborator

This is also being addressed by #1938 and #1940

@shaunagm shaunagm closed this Sep 17, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

python Pull requests that update Python code

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[Bug] geocode_address_batch discards completed chunks when one chunk fails

3 participants