: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
#!/usr/bin/env bash
set -euo pipefail
export SECRET_KEY="$(python -c 'import secrets; print(secrets.token_urlsafe(64))')"
export SKIP_ASYNC_MIGRATIONS_SETUP=1
export PROMETHEUS_MULTIPROC_DIR=/tmp/posthog_celery_prometheus
exec celery -A posthog worker -Ofair \
--queues=ai_research_privacy \
--concurrency=1 \
--prefetch-multiplier=1 \
--without-gossip --without-mingle --without-heartbeat