updated paperless with worker health-check
This commit is contained in:
@@ -257,6 +257,13 @@ spec:
|
||||
value: "true"
|
||||
- name: PAPERLESS_LOGOUT_REDIRECT_URL
|
||||
value: "https://authentik.dooplex.hu/application/o/paperless/end-session/"
|
||||
# Env values for checking worker health
|
||||
- name: PAPERLESS_TASK_WORKERS
|
||||
value: "2"
|
||||
- name: CELERY_WORKER_MAX_TASKS_PER_CHILD
|
||||
value: "100" # Restart worker after 100 tasks (prevents memory leaks/hangs)
|
||||
- name: CELERY_WORKER_MAX_MEMORY_PER_CHILD
|
||||
value: "1048576" # Restart if worker exceeds 1GB
|
||||
ports:
|
||||
- name: http
|
||||
containerPort: 8000
|
||||
|
||||
Reference in New Issue
Block a user