Files
posthog/bin/start-celery
Paweł Szczur be22249a85 chore(API): switch app requests to app user (#31762)
Co-authored-by: greptile-apps[bot] <165735046+greptile-apps[bot]@users.noreply.github.com>
2025-04-30 13:58:53 +00:00

15 lines
385 B
Bash
Executable File

#!/bin/bash
# Starts a celery worker / heartbeat job. Must be run with a type of process: worker | beat
set -e
export CLICKHOUSE_API_USER="api"
export CLICKHOUSE_API_PASSWORD="apipass"
export CLICKHOUSE_APP_USER="app"
export CLICKHOUSE_APP_PASSWORD="apppass"
source ./bin/celery-queues.env
# start celery worker with heartbeat (-B)
python manage.py run_autoreload_celery --type=$1