mirror of
https://github.com/PostHog/posthog.git
synced 2024-11-22 17:24:15 +01:00
0223d7ab86
* feat: Add Temporal to the dev and hobby stacks * disable elastic for hobby because of resources * checkpoint * update requirements * worker is up, but without the sandbox * ensure temporal does not depend on elastic * Feedbacked * pip-compile dev * mypy fixes * add a bit of colorful logging * add django temporal worker to the mix * checkpoint for dev-full docker * Working on docker-full, but checkpointing for now * add migration bits for full
14 lines
426 B
Bash
Executable File
14 lines
426 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)
|
|
SKIP_ASYNC_MIGRATIONS_SETUP=0 celery -A posthog worker -B --scheduler redbeat.RedBeatScheduler --without-heartbeat --without-gossip --without-mingle -Ofair -n node@%h &
|
|
|
|
if [[ "$PLUGIN_SERVER_IDLE" != "1" && "$PLUGIN_SERVER_IDLE" != "true" ]]; then
|
|
./bin/plugin-server
|
|
fi
|
|
|
|
wait |