mirror of
https://github.com/PostHog/posthog.git
synced 2024-11-21 13:39:22 +01:00
feat(celery): Add prefetch multiplier to flags (#21399)
Since the env var doesn't make it to the subprocess
This commit is contained in:
parent
dbf533c384
commit
84a098ce64
@ -76,6 +76,8 @@ FLAGS+=("-n node@%h")
|
||||
# Restart worker process after it exceeds this much memory usage (to mitigate memory leaks)
|
||||
[[ -n "${CELERY_MAX_MEMORY_PER_CHILD}" ]] && FLAGS+=" --max-memory-per-child $CELERY_MAX_MEMORY_PER_CHILD"
|
||||
|
||||
[[ -n "${CELERY_WORKER_PREFETCH_MULTIPLIER}" ]] && FLAGS+=" --prefetch-multiplier $CELERY_WORKER_PREFETCH_MULTIPLIER"
|
||||
|
||||
if [[ -z "${CELERY_WORKER_QUEUES}" ]]; then
|
||||
source ./bin/celery-queues.env
|
||||
fi
|
||||
|
Loading…
Reference in New Issue
Block a user