Skip to content

Commit 4a07f37

Browse files
authored
fix: mprocs failing cause source: not found (PostHog#27244)
1 parent 2b27355 commit 4a07f37

File tree

2 files changed

+11
-2
lines changed

2 files changed

+11
-2
lines changed

bin/mprocs.yaml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,9 @@
11
procs:
22
celery-worker:
3-
shell: 'bin/check_kafka_clickhouse_up && source ./bin/celery-queues.env && python manage.py run_autoreload_celery --type=worker'
3+
shell: 'bin/check_kafka_clickhouse_up && ./bin/start-celery worker'
44

55
celery-beat:
6-
shell: 'bin/check_kafka_clickhouse_up && source ./bin/celery-queues.env && python manage.py run_autoreload_celery --type=beat'
6+
shell: 'bin/check_kafka_clickhouse_up && ./bin/start-celery beat'
77

88
plugin-server:
99
shell: 'bin/check_kafka_clickhouse_up && ./bin/plugin-server'

bin/start-celery

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
#!/bin/bash
2+
# Starts a celery worker / heartbeat job. Must be run with a type of process: worker | beat
3+
4+
set -e
5+
6+
source ./bin/celery-queues.env
7+
8+
# start celery worker with heartbeat (-B)
9+
python manage.py run_autoreload_celery --type=$1

0 commit comments

Comments
 (0)