We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent f76d9d4 commit 30cb1e6Copy full SHA for 30cb1e6
1 file changed
src/nefarious/settings.py
@@ -178,6 +178,11 @@
178
# nefarious (celery) will actually use the INTERNAL_DOWNLOAD_PATH (container specific path) to scan for imported media
179
HOST_DOWNLOAD_PATH = os.environ.get('HOST_DOWNLOAD_PATH', INTERNAL_DOWNLOAD_PATH if DEBUG else None)
180
181
+# the number of tasks a worker process will reserve at a time.
182
+CELERY_WORKER_PREFETCH_MULTIPLIER = 1
183
+# this ensures the task is acknowledged AFTER it runs, not before.
184
+CELERY_TASK_ACKS_LATE = True
185
+
186
CONFIG_PATH = os.environ.get('CONFIG_PATH', '/nefarious-db')
187
188
# log to shared config path when using default container configuration, otherwise fallback to /tmp
0 commit comments