Skip to content

fix: run send middlewares when requeueing tasks#628

Open
onefeng wants to merge 2 commits into
taskiq-python:masterfrom
onefeng:master
Open

fix: run send middlewares when requeueing tasks#628
onefeng wants to merge 2 commits into
taskiq-python:masterfrom
onefeng:master

Conversation

@onefeng
Copy link
Copy Markdown

@onefeng onefeng commented May 26, 2026

Summary

Ensure Context.requeue() runs pre_send and post_send middleware hooks when sending the requeued message.

Previously, requeue sent the message directly through broker.kick(), bypassing the same send middleware chain used by AsyncKicker.kiq().

Tests

  • uv run pytest tests/test_requeue.py
  • uv run ruff check taskiq/context.py tests/test_requeue.py

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant