fix: chunk FIRMS bulk inserts under asyncpg 32767 bind cap #14
Loading…
Add table
Reference in a new issue
No description provided.
Delete branch "fix/firms-bind-limit"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Summary
/api/healthis degraded becausefires.okis false (last write ~50 min ago).Root cause:
ingest_fire_rowssent ~90k rows in oneINSERT, which exceeds asyncpg's 32767 bind-parameter limit.fire_looplogsInterfaceErrorand skips the poll.Fix: chunk 2000 rows/statement (~14 cols → 28k binds), still one commit per poll.
Tests
pytest -q→ 108 passed, 15 skipped.Note
CI deploys on merge to master. HUD will stay DEGRADED until the next successful FIRMS poll after this ships.