Skip to content

UN-3883 [FEAT] Cut dashboard metrics cron DB load: narrower source windows, monthly from daily, two new indexes - #2276

Merged
kirtimanmishrazipstack merged 34 commits into
mainfrom
UN-3883-Optimize-DB-cron-queries-causing-high-DB-load
Sep 9, 2026
Merged

kirtimanmishrazipstack merged 34 commits into
mainfrom
UN-3883-Optimize-DB-cron-queries-causing-high-DB-load

UN-3883 [FIX] Close the confirming review's findings

6cc6abe
Select commit
Loading
Failed to load commit list.
SonarQubeCloud / SonarCloud Code Analysis succeeded Sep 9, 2026 in 1m 49s

Annotations

Check warning on line 175 in backend/workflow_manager/file_execution/tests/test_wfe_status_created_idx_planner.py

See this annotation in the file changed.

@sonarqubecloud sonarqubecloud / SonarCloud Code Analysis

Split this composite assertion into separate assertions.

See more on https://sonarcloud.io/project/issues?id=Zipstack_unstract&issues=AaCCFVXvJmjuCNTI7YqK&open=AaCCFVXvJmjuCNTI7YqK&pullRequest=2276

Check warning on line 1295 in backend/dashboard_metrics/tests/test_tasks.py

See this annotation in the file changed.

@sonarqubecloud sonarqubecloud / SonarCloud Code Analysis

Split this composite assertion into separate assertions.

See more on https://sonarcloud.io/project/issues?id=Zipstack_unstract&issues=AaCBxv9z-u5v8uGrekLf&open=AaCBxv9z-u5v8uGrekLf&pullRequest=2276

Check warning on line 112 in backend/dashboard_metrics/migrations/0006_split_aggregation_schedule.py

See this annotation in the file changed.

@sonarqubecloud sonarqubecloud / SonarCloud Code Analysis

Rename this local variable "PeriodicTask" to match the regular expression ^[_a-z][a-z0-9_]*$.

See more on https://sonarcloud.io/project/issues?id=Zipstack_unstract&issues=AaBiGog6K4KaJIlFSt6A&open=AaBiGog6K4KaJIlFSt6A&pullRequest=2276

Check warning on line 168 in backend/workflow_manager/file_execution/tests/test_wfe_status_created_idx_planner.py

See this annotation in the file changed.

@sonarqubecloud sonarqubecloud / SonarCloud Code Analysis

Split this composite assertion into separate assertions.

See more on https://sonarcloud.io/project/issues?id=Zipstack_unstract&issues=AaCCFVXvJmjuCNTI7YqJ&open=AaCCFVXvJmjuCNTI7YqJ&pullRequest=2276

Check warning on line 189 in backend/dashboard_metrics/migrations/0006_split_aggregation_schedule.py

See this annotation in the file changed.

@sonarqubecloud sonarqubecloud / SonarCloud Code Analysis

Rename this local variable "PeriodicTask" to match the regular expression ^[_a-z][a-z0-9_]*$.

See more on https://sonarcloud.io/project/issues?id=Zipstack_unstract&issues=AaBiGog6K4KaJIlFSt6C&open=AaBiGog6K4KaJIlFSt6C&pullRequest=2276

Check warning on line 111 in backend/dashboard_metrics/migrations/0006_split_aggregation_schedule.py

See this annotation in the file changed.

@sonarqubecloud sonarqubecloud / SonarCloud Code Analysis

Rename this local variable "CrontabSchedule" to match the regular expression ^[_a-z][a-z0-9_]*$.

See more on https://sonarcloud.io/project/issues?id=Zipstack_unstract&issues=AaBiGog6K4KaJIlFSt5_&open=AaBiGog6K4KaJIlFSt5_&pullRequest=2276

Check warning on line 190 in backend/dashboard_metrics/migrations/0006_split_aggregation_schedule.py

See this annotation in the file changed.

@sonarqubecloud sonarqubecloud / SonarCloud Code Analysis

Rename this local variable "PgPeriodicTask" to match the regular expression ^[_a-z][a-z0-9_]*$.

See more on https://sonarcloud.io/project/issues?id=Zipstack_unstract&issues=AaBiGog6K4KaJIlFSt6D&open=AaBiGog6K4KaJIlFSt6D&pullRequest=2276

Check warning on line 113 in backend/dashboard_metrics/migrations/0006_split_aggregation_schedule.py

See this annotation in the file changed.

@sonarqubecloud sonarqubecloud / SonarCloud Code Analysis

Rename this local variable "PgPeriodicTask" to match the regular expression ^[_a-z][a-z0-9_]*$.

See more on https://sonarcloud.io/project/issues?id=Zipstack_unstract&issues=AaBiGog6K4KaJIlFSt6B&open=AaBiGog6K4KaJIlFSt6B&pullRequest=2276

Check warning on line 296 in workers/tests/test_dashboard_metrics_tasks.py

See this annotation in the file changed.

@sonarqubecloud sonarqubecloud / SonarCloud Code Analysis

Split this composite assertion into separate assertions.

See more on https://sonarcloud.io/project/issues?id=Zipstack_unstract&issues=AaCFn6Gps5UrZAqjkcK1&open=AaCFn6Gps5UrZAqjkcK1&pullRequest=2276