Skip to content

Add option to disable broker prefetch - #5

Merged
rbehal merged 4 commits into
mainfrom
codex/add-option-to-completely-disable-prefetching
Jul 17, 2025
Merged

rbehal merged 4 commits into
mainfrom
codex/add-option-to-completely-disable-prefetching

Conversation

@rbehal

@rbehal rbehal commented Jul 11, 2025

Copy link
Copy Markdown
Owner

Summary

  • add worker_disable_prefetch config option
  • patch consumer QoS when this option is enabled so tasks are only fetched when workers are free
  • document the new option and update prefetch docs

Testing

  • pre-commit run --files celery/app/defaults.py celery/worker/consumer/tasks.py docs/userguide/configuration.rst docs/userguide/optimizing.rst docs/history/changelog-5.5.rst
  • pytest t/unit/worker/test_consumer.py::test_Tasks::test_log_when_qos_is_false -q

https://chatgpt.com/codex/tasks/task_b_68709ddeeb108330a88c139da218aebc

@rbehal
rbehal merged commit 5e2dcf4 into main Jul 17, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant