mirror of
https://github.com/PostHog/posthog.git
synced 2024-11-24 09:14:46 +01:00
b8d1ba43f4
* disable celery heartbeat, gossip and mingle * keep the heartbeat * beat doesn't want these params * add back "without heartbeat"
12 lines
318 B
Bash
Executable File
12 lines
318 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 &
|
|
|
|
# start celery plugin worker
|
|
./bin/plugin-server
|