mirror of
https://github.com/PostHog/posthog.git
synced 2024-11-24 09:14:46 +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)
|
# 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_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
|
if [[ -z "${CELERY_WORKER_QUEUES}" ]]; then
|
||||||
source ./bin/celery-queues.env
|
source ./bin/celery-queues.env
|
||||||
fi
|
fi
|
||||||
|
Loading…
Reference in New Issue
Block a user