Compare commits

...

2 Commits

Author SHA1 Message Date
justin-tahara
b8cc9be5fe next attempt 2025-12-24 13:38:45 -08:00
justin-tahara
16eff45180 fix(docprocessing): Set Worker Max Tasks per Child 2025-12-24 13:27:48 -08:00

View File

@@ -25,5 +25,11 @@ task_acks_late = shared_config.task_acks_late
# task_track_started = True
worker_concurrency = CELERY_WORKER_DOCPROCESSING_CONCURRENCY
worker_pool = "threads"
worker_pool = "prefork"
worker_prefetch_multiplier = 1
# Restart worker threads after N tasks to prevent Python memory fragmentation
# Python's allocator doesn't always return memory to the OS, causing gradual
# memory growth even when objects are properly freed. Restarting threads
# periodically ensures memory is actually released back to the system.
worker_max_tasks_per_child = 50