0
0
mirror of https://github.com/PostHog/posthog.git synced 2024-11-22 08:40:03 +01:00
posthog/bin/docker-worker-beat
Yakko Majuri 444568a06e
Add names to celery nodes (#7054 pt. 2) (#7433)
* add names to celery nodes

* use python instead

* hostname naming
2021-11-30 17:06:19 +00:00

6 lines
148 B
Bash
Executable File

#!/bin/bash
set -e
rm celerybeat.pid || echo "celerybeat.pid not found, proceeding"
celery -A posthog beat -S redbeat.RedBeatScheduler -n node@%%h