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.

925 B
Raw Blame
import { BindLogic, useValues } from 'kea'

import { batchExportDataLogic } from 'scenes/data-pipelines/batch-exports/batchExportDataLogic'
import { BatchExportLoadingSkeleton } from 'scenes/data-pipelines/batch-exports/BatchExportLoadingSkeleton'
import { BatchExportRuns } from 'scenes/data-pipelines/batch-exports/BatchExportRuns'

import { hogFunctionBackfillsLogic, HogFunctionBackfillsLogicProps } from '../backfills/hogFunctionBackfillsLogic'

export function HogFunctionRuns({ id }: HogFunctionBackfillsLogicProps): JSX.Element {
    const { configuration, isReady } = useValues(hogFunctionBackfillsLogic({ id }))

    if (!isReady) {
        return <BatchExportLoadingSkeleton />
    }

    return (
        <BindLogic logic={batchExportDataLogic} props={{ id: configuration.batch_export_id! }}>
            <BatchExportRuns id={configuration.batch_export_id!} context="hog_function" />
        </BindLogic>
    )
}