Files
posthog/bin/mprocs.yaml
Michael Matloka 7e320661dd chore(dev): Dummy Hedgebox app (#39189)
Co-authored-by: Copilot Autofix powered by AI <62310815+github-advanced-security[bot]@users.noreply.github.com>
Co-authored-by: Thomas Obermüller <thomas.obermueller@gmail.com>
2025-10-10 12:41:08 +01:00

133 lines
5.5 KiB
YAML
Executable File

procs:
backend:
shell: 'uv sync --active && bin/check_postgres_up && bin/check_kafka_clickhouse_up && ./bin/start-backend'
celery-worker:
shell: 'uv sync --active && bin/check_postgres_up && bin/check_kafka_clickhouse_up && ./bin/start-celery worker'
celery-beat:
shell: 'uv sync --active && bin/check_postgres_up && bin/check_kafka_clickhouse_up && ./bin/start-celery beat'
plugin-server:
shell: 'bin/check_postgres_up && bin/check_kafka_clickhouse_up && ./bin/plugin-server'
frontend:
shell: './bin/start-frontend'
autorestart: true
temporal-worker-general-purpose:
shell: 'bin/check_kafka_clickhouse_up && bin/check_temporal_up && python manage.py start_temporal_worker --task-queue general-purpose-task-queue'
temporal-worker-batch-exports:
# added a sleep to give the docker stuff time to start
shell: 'bin/check_kafka_clickhouse_up && bin/check_temporal_up && python manage.py start_temporal_worker --task-queue batch-exports-task-queue --metrics-port 8002'
temporal-worker-data-warehouse:
shell: 'bin/check_kafka_clickhouse_up && bin/check_temporal_up && python manage.py start_temporal_worker --task-queue data-warehouse-task-queue --metrics-port 8003'
temporal-worker-data-warehouse-compaction:
shell: 'bin/check_kafka_clickhouse_up && bin/check_temporal_up && python manage.py start_temporal_worker --task-queue data-warehouse-compaction-task-queue --metrics-port 8004'
temporal-worker-data-modeling:
shell: 'bin/check_kafka_clickhouse_up && bin/check_temporal_up && python manage.py start_temporal_worker --task-queue data-modeling-task-queue --metrics-port 8005'
temporal-worker-max-ai:
shell: 'bin/check_kafka_clickhouse_up && bin/check_temporal_up && nodemon -w common -w dags -w ee -w posthog -w products -w pyproject.toml -e py --signal SIGTERM --exec "python manage.py start_temporal_worker --task-queue max-ai-task-queue --metrics-port 8006"'
temporal-worker-tasks-agent:
shell: 'bin/check_kafka_clickhouse_up && bin/check_temporal_up && python manage.py start_temporal_worker --task-queue tasks-task-queue --metrics-port 8007'
temporal-worker-billing:
shell: 'bin/check_kafka_clickhouse_up && bin/check_temporal_up && python manage.py start_temporal_worker --task-queue billing-task-queue --metrics-port 8008'
temporal-worker-video-export:
shell: 'bin/check_video_deps && bin/check_kafka_clickhouse_up && bin/check_temporal_up && python manage.py start_temporal_worker --task-queue video-export-task-queue --metrics-port 8009'
temporal-worker-session-replay:
shell: 'bin/check_kafka_clickhouse_up && bin/check_temporal_up && python manage.py start_temporal_worker --task-queue session-replay-task-queue --metrics-port 8010'
dagster:
shell: |-
bin/check_postgres_up && \
bin/check_kafka_clickhouse_up && \
dagster dev --workspace $DAGSTER_HOME/workspace.yaml -p $DAGSTER_UI_PORT
docker-compose:
# docker-compose makes sure the stack is up, and then follows its logs - but doesn't tear down on exit for speed
shell: 'docker compose -f docker-compose.dev.yml up --pull always -d && docker compose -f docker-compose.dev.yml logs --tail=0 -f'
cyclotron-janitor:
shell: |-
bin/check_postgres_up cyclotron && \
bin/check_kafka_clickhouse_up && \
bin/start-rust-service cyclotron-janitor
cymbal:
shell: |-
bin/check_postgres_up && \
bin/check_kafka_clickhouse_up && \
bin/start-rust-service cymbal
embedding-worker:
shell: |-
bin/check_kafka_clickhouse_up && \
bin/start-rust-service embedding-worker
autostart: false
feature-flags:
shell: |-
bin/check_postgres_up posthog && \
bin/start-rust-service feature-flags
property-defs-rs:
shell: |-
bin/check_postgres_up && \
bin/check_kafka_clickhouse_up && \
bin/start-rust-service property-defs-rs
capture:
shell: |-
bin/check_postgres_up && \
bin/check_kafka_clickhouse_up && \
bin/start-rust-service capture
capture-replay:
shell: |-
bin/check_postgres_up && \
bin/check_kafka_clickhouse_up && \
bin/start-rust-service capture-replay
batch-import-worker:
shell: |-
bin/check_postgres_up && \
bin/check_kafka_clickhouse_up && \
bin/start-rust-service batch-import-worker
migrate-postgres:
shell: 'bin/check_postgres_up && python manage.py migrate' # This takes ~10 s
migrate-clickhouse:
shell: 'bin/check_kafka_clickhouse_up && python manage.py migrate_clickhouse' # This takes ~10 s too
migrate-persons-db:
shell: 'bin/check_postgres_up posthog_persons && cd rust && DATABASE_URL=postgres://posthog:posthog@localhost:5432/posthog_persons sqlx migrate run --source persons_migrations'
generate-demo-data:
shell: |-
bin/check_postgres_up && \
bin/check_kafka_clickhouse_up && \
bin/check_dagster_graphql_up && \
./manage.py generate_demo_data
autostart: false
storybook:
shell: 'pnpm --filter=@posthog/storybook install && pnpm run storybook'
autostart: false
hedgebox-dummy:
shell: 'bin/check_postgres_up && cd hedgebox-dummy && pnpm install && pnpm run dev'
autostart: false
mouse_scroll_speed: 1
scrollback: 10000