Skip to content

Every ANEPC poll re-saves every incident and queues history jobs #55

Closed

Description

@tomahock

Since #43, ProcessOcorrenciasSite (and ProcessANPCAllDataV2) set anepcUpdatedAt = now() on every incident in the feed. The other per-poll fields (duracaoMinutos, dataDosDados) are not fillable and are dropped, so before this change unchanged incidents were a no-op save. Now every incident is dirty every 2 minutes, fires IncidentObserver::updated and queues SaveIncidentHistory + SaveIncidentStatusHistory per incident per poll. anepcUpdatedAt is never read; source already records the owner.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions