Skip to content

Reuse stream if it already exists - #26

Closed
Bartr4 wants to merge 3 commits into
taskiq-python:masterfrom
Lance-Free:fix/check-existing-stream
Closed

Bartr4 wants to merge 3 commits into
taskiq-python:masterfrom
Lance-Free:fix/check-existing-stream

Conversation

@Bartr4

@Bartr4 Bartr4 commented Mar 19, 2026

Copy link
Copy Markdown

add_stream can fail with err_code=10058 ("stream name already in use with a different configuration") when the stream already exists and the configuration was enriched by the server. This fix checks if there is an existing stream and reuses it instead of attempting to create the stream again on every restart.

@XChikuX

XChikuX commented Sep 28, 2026

Copy link
Copy Markdown

Looks good to me @s3rius

@danfimov
danfimov requested review from danfimov and s3rius September 28, 2026 13:16
@danfimov

Copy link
Copy Markdown
Member

Thanks for digging into this — the problem is real and well described. We decided to go with a different implementation, so I'm closing this PR in favor of #30 , which keeps your finding but changes the approach.

@danfimov danfimov closed this Sep 28, 2026
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.

3 participants