diff --git a/posthog/api/dashboards/dashboard.py b/posthog/api/dashboards/dashboard.py index 93fad2a55088c..61e65efdadc7e 100644 --- a/posthog/api/dashboards/dashboard.py +++ b/posthog/api/dashboards/dashboard.py @@ -21,7 +21,6 @@ from posthog.api.routing import TeamAndOrgViewSetMixin from posthog.api.shared import UserBasicSerializer from posthog.api.tagged_item import TaggedItemSerializerMixin, TaggedItemViewSetMixin -from posthog.clickhouse.client.async_task_chain import task_chain_context from posthog.event_usage import report_user_action from posthog.helpers import create_dashboard_from_template from posthog.helpers.dashboard_templates import create_from_template @@ -458,9 +457,8 @@ def retrieve(self, request: Request, *args: Any, **kwargs: Any) -> Response: dashboard = get_object_or_404(queryset, pk=pk) dashboard.last_accessed_at = now() dashboard.save(update_fields=["last_accessed_at"]) - with task_chain_context(): - serializer = DashboardSerializer(dashboard, context={"view": self, "request": request}) - return Response(serializer.data) + serializer = DashboardSerializer(dashboard, context={"view": self, "request": request}) + return Response(serializer.data) @action(methods=["PATCH"], detail=True) def move_tile(self, request: Request, *args: Any, **kwargs: Any) -> Response: