: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.
Python ab-testingai-analyticsanalyticscdpdata-warehouseexperimentsfeature-flagsjavascriptproduct-analyticspythonreactsession-replaysurveystypescriptweb-analytics
import { NodeApiSuspended, NodeSuspensionApi } from './generated/api.schemas'
/**
* Markers are written per engine, but only ClickHouse serves queries. A marker on the duckgres
* shadow means the comparison run stopped, not that the model stopped refreshing.
*/
export const SERVING_ENGINE = 'clickhouse'
export function servingSuspension(suspended: NodeApiSuspended | undefined | null): NodeSuspensionApi | undefined {
return suspended?.[SERVING_ENGINE]
}
/**
* "Suspended" is PostHog stopping the schedule after repeated failures. "Paused" is the user
* setting the cadence to never. The two states offer different actions, so the copy keeps the
* two words apart.
*/
export function suspendedScheduleMessage(subject: 'view' | 'endpoint'): string {
return `Scheduled runs are suspended for this ${subject} because materialization kept failing. Fix the query, then resume.`
}