Skip to content

Commit 87ecf74

Browse files
committed
ref(seer): Move import to top level in lightweight RCA cluster task
No circular dependency exists, so the function-level import is unnecessary.
1 parent 2b9b855 commit 87ecf74

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

src/sentry/tasks/seer/lightweight_rca_cluster.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
import logging
22

33
from sentry.models.group import Group
4+
from sentry.seer.supergroups.lightweight_rca_cluster import trigger_lightweight_rca_cluster
45
from sentry.tasks.base import instrumented_task
56
from sentry.taskworker.namespaces import ingest_errors_postprocess_tasks
67

@@ -12,8 +13,6 @@
1213
namespace=ingest_errors_postprocess_tasks,
1314
)
1415
def trigger_lightweight_rca_cluster_task(group_id: int, **kwargs) -> None:
15-
from sentry.seer.supergroups.lightweight_rca_cluster import trigger_lightweight_rca_cluster
16-
1716
try:
1817
group = Group.objects.get(id=group_id)
1918
except Group.DoesNotExist:

0 commit comments

Comments
 (0)