File tree Expand file tree Collapse file tree 1 file changed +4
-1
lines changed
Expand file tree Collapse file tree 1 file changed +4
-1
lines changed Original file line number Diff line number Diff line change 2323from sentry .replays .lib .event_linking import transform_event_for_linking_payload
2424from sentry .replays .lib .kafka import initialize_replays_publisher
2525from sentry .seer .autofix .constants import FixabilityScoreThresholds
26- from sentry .seer .autofix .utils import has_project_connected_repos
2726from sentry .sentry_metrics .client import generic_metrics_backend
2827from sentry .sentry_metrics .use_case_id_registry import UseCaseID
2928from sentry .signals import event_processed , issue_unignored
@@ -1690,6 +1689,10 @@ def kick_off_seer_automation(job: PostProcessJob) -> None:
16901689 return # Another process already dispatched automation
16911690
16921691 # Check if project has connected repositories - requirement for new pricing
1692+ # Import here to avoid circular import: utils.py imports from code_mapping.py
1693+ # which triggers Django model loading before apps are ready
1694+ from sentry .seer .autofix .utils import has_project_connected_repos
1695+
16931696 if not has_project_connected_repos (group .organization .id , group .project .id ):
16941697 return
16951698
You can’t perform that action at this time.
0 commit comments