Skip to content

:hedgehog: PostHog is the leading platform for building self-driving products. Our developer tools – AI observability, analytics, session replay, flags, experiments, error tracking, logs, and more – capture all the context agents need to diagnose problems, uncover opportunities, and ship fixes. Steer it all from Slack, web, desktop, or the MCP.

1.3 KB
Raw Blame
"""
Facade re-exports for the SQLV2 sandbox-facing endpoints.

Core (`posthog/urls.py`) wires the internal sandbox -> backend endpoints — the
run result callback and the data plane — through these re-exports rather than
importing the view modules directly.

The cell-dispatch surface sits here too, because the HTTP surface starts a cell run and
may only reach in-product code through this package. Both entry points take ids and
contracts and resolve the models inside the product, so no caller holds a Django object.
`dispatch_cell_run` takes and gives back the run's concurrency slots itself, so the view
never handles them.
"""

from ..sql_v2_callback import notebook_sql_v2_callback as notebook_sql_v2_callback
from ..sql_v2_data_plane import (
    notebook_sql_v2_data_plane as notebook_sql_v2_data_plane,
    notebook_sql_v2_data_plane_status as notebook_sql_v2_data_plane_status,
    record_sandbox_heartbeat as record_sandbox_heartbeat,
)
from ..sql_v2_dispatch import (
    NodeRunDispatchFailed as NodeRunDispatchFailed,
    NodeRunInvalid as NodeRunInvalid,
    NodeRunNotPermitted as NodeRunNotPermitted,
    NodeRunRequest as NodeRunRequest,
    build_ref_specs as build_ref_specs,
    dispatch_cell_run as dispatch_cell_run,
    kernel_sandbox_is_live as kernel_sandbox_is_live,
)