mirror of
https://github.com/BillyOutlast/posthog.git
synced 2026-02-04 03:01:23 +01:00
Co-authored-by: greptile-apps[bot] <165735046+greptile-apps[bot]@users.noreply.github.com>
15 lines
385 B
Bash
Executable File
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
|