Skip to content

fix(incidents): stop ICNF/ANEPC flapping and scope the stale guard (#45) - #46

Merged
tomahock merged 1 commit into
mainfrom
fix/anepc-icnf-review
Oct 26, 2026
Merged

tomahock merged 1 commit into
mainfrom
fix/anepc-icnf-review

Conversation

@tomahock

Copy link
Copy Markdown
Member

Closes #45

Follow-up to the Codex review on #43.

Change

  • Flapping (ProcessICNFNewFireData): ICNF-only incidents are reactivated by ICNF only while the ANEPC feed is stale. While ANEPC is fresh the ICNF job only closes Extinto fires and never reopens, so it no longer undoes CheckIsActive on every run.
  • Stale guard scope (CheckIsActive): new guardAnepcFeedHealth flag (default false). Only ProcessOcorrenciasSite passes true. ProcessANPCAllDataV2 (anepc:sync) cleans up from its own list again, regardless of the ArcGIS feed health.

Still as before (unchanged by this PR): while ANEPC is fresh, a brand-new ICNF fire is created active and removed by the next CheckIsActive (≤2 min) if ANEPC does not list it.

Tests

Full suite: same 12 pre-existing errors as main (missing mongodb extension in the local container); php -l OK on the changed jobs.

Deploy

  1. Deploy as usual.
  2. php artisan queue:restart (jobs changed). CheckIsActive jobs already queued keep working (the new property defaults to false).
    No env changes, no migrations.

🤖 Generated with Claude Code

- ProcessICNFNewFireData only reactivates ICNF-only incidents while the
  ANEPC feed is stale. While it is fresh it just closes Extinto fires, so
  it no longer undoes CheckIsActive every run.
- CheckIsActive skips cleanup on a stale feed only when dispatched with
  guardAnepcFeedHealth (ProcessOcorrenciasSite). ProcessANPCAllDataV2 /
  anepc:sync cleans up from its own list again.

Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
@chatgpt-codex-connector

chatgpt-codex-connector Bot commented Oct 26, 2026 •

Copy link
Copy Markdown

Codex Review Summary

This comment shows the latest Codex review activity on this pull request.

Review Status Commit Review trigger
📝 Code Review ✅ Completed 2026-10-26T15:06:13.460848Z b293f73 PR opened
ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review" or "@codex security review".

Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings.

@tomahock
tomahock merged commit 13e27a2 into main Oct 26, 2026
1 check passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Follow-up to #43: ICNF-only fires flicker while ANEPC is fresh; anepc:sync skips cleanup

1 participant