Skip to content

Add cronjob for syncing heartbeats with heartbeat-missing incidents#1954

Open
hmpf wants to merge 6 commits into
mainfrom
heartbeat-checker-cronjob
Open

Add cronjob for syncing heartbeats with heartbeat-missing incidents#1954
hmpf wants to merge 6 commits into
mainfrom
heartbeat-checker-cronjob

fixup! Add command for opening/closing heartbeat incidents

ae446d0
Select commit
Loading
Failed to load commit list.
SonarQubeCloud / SonarCloud Code Analysis succeeded Jul 2, 2026 in 40s

Annotations

Check warning on line 61 in src/argus/incident/factories.py

See this annotation in the file changed.

@sonarqubecloud sonarqubecloud / SonarCloud Code Analysis

Rename this variable; it shadows a builtin.

See more on https://sonarcloud.io/project/issues?id=Uninett_Argus&issues=AZ8EGo4rCiIG18GZj8CN&open=AZ8EGo4rCiIG18GZj8CN&pullRequest=1954

Check warning on line 29 in src/argus/incident/heartbeat_utils.py

See this annotation in the file changed.

@sonarqubecloud sonarqubecloud / SonarCloud Code Analysis

Replace the unused local variable "closed_incidents" with "_".

See more on https://sonarcloud.io/project/issues?id=Uninett_Argus&issues=AZ8jLlAxmsl-RwJgGWTn&open=AZ8jLlAxmsl-RwJgGWTn&pullRequest=1954

Check failure on line 9 in src/argus/incident/management/commands/sync_heartbeat_incidents.py

See this annotation in the file changed.

@sonarqubecloud sonarqubecloud / SonarCloud Code Analysis

Refactor this function to reduce its Cognitive Complexity from 19 to the 15 allowed.

See more on https://sonarcloud.io/project/issues?id=Uninett_Argus&issues=AZ8jLk7umsl-RwJgGWTm&open=AZ8jLk7umsl-RwJgGWTm&pullRequest=1954