#!/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