0
0
mirror of https://github.com/PostHog/posthog.git synced 2024-11-24 18:07:17 +01:00
posthog/bin/docker-worker-celery
Marius Andra a5d9f98e00
Reduce Heroku worker thread count (#2092)
* update the concurrency for heroku workers

* update the concurrency for heroku workers (add link)
2020-10-30 10:17:55 +01:00

11 lines
314 B
Bash
Executable File

#!/bin/bash
set -e
# On heroku $WEB_CONCURRENCY contains suggested nr of forks per dyno type
# https://github.com/heroku/heroku-buildpack-python/blob/main/vendor/WEB_CONCURRENCY.sh
if [[ -z "${WEB_CONCURRENCY}" ]]; then
celery -A posthog worker
else
celery -A posthog worker --concurrency $WEB_CONCURRENCY
fi