Skip to content

Copy task state without mutating its data - #721

Open
IlyaKhalafi wants to merge 1 commit into
taskiq-python:masterfrom
IlyaKhalafi:campaign30/2026-11-06/taskiq
Open

IlyaKhalafi wants to merge 1 commit into
taskiq-python:masterfrom
IlyaKhalafi:campaign30/2026-11-06/taskiq

Conversation

@IlyaKhalafi

Copy link
Copy Markdown

This PR fixes TaskiqState.copy mutating the original mapping and overwriting a user data key. With this, it returns an independent shallow copy through the existing copy protocol.

Fixes #720

Eight state tests pass, including two regressions that fail before the fix. The full suite has 374 passing tests and one forkserver logging failure that also occurs on upstream. Ruff, Black and focused mypy checks pass.

This branch has not been deployed

No deployments
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.

TaskiqState.copy mutates the source and overwrites the data key

1 participant