mirror of
https://github.com/PostHog/posthog.git
synced 2024-11-22 08:40:03 +01:00
444568a06e
* add names to celery nodes * use python instead * hostname naming
12 lines
337 B
Bash
Executable File
12 lines
337 B
Bash
Executable File
#!/bin/bash
|
|
set -e
|
|
|
|
# this kills all processes when the last one terminates
|
|
trap 'kill $(jobs -p)' EXIT
|
|
|
|
# start celery worker with heartbeat (-B)
|
|
celery -A posthog worker -B --scheduler redbeat.RedBeatScheduler --without-heartbeat --without-gossip --without-mingle -Ofair -n node@%%h &
|
|
|
|
# start celery plugin worker
|
|
./bin/plugin-server
|