mirror of
https://github.com/PostHog/posthog.git
synced 2024-11-24 18:07:17 +01:00
a5d9f98e00
* update the concurrency for heroku workers * update the concurrency for heroku workers (add link)
11 lines
314 B
Bash
Executable File
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
|