Skip to content

Conversation

thewhaleking
Copy link
Collaborator

Ensures that we do not attempt to reconnect if there are open subscriptions.

While it is technically possible for us to reconnect and resubmit the subscription, there is a very real likelihood that the user will have missed something in between the last-received subscription update and the one after we reconnect. It is better, therefore, to just raise the exception, and allow the user to handle this error (probably by running some sort of catchup for the time that was missed, and then re-subscribing).

@thewhaleking thewhaleking requested a review from a team October 8, 2025 18:32
@github-actions github-actions bot added run-bittensor-sdk-tests Runs Bittensor SDK tests. run-bittensor-cli-tests Runs BTCLI tests. labels Oct 8, 2025
@thewhaleking thewhaleking merged commit 91ee52f into staging Oct 8, 2025
110 of 112 checks passed
@thewhaleking thewhaleking deleted the fix/thewhaleking/ensure-reconnections-do-not-happen-with-open-subscriptions branch October 8, 2025 19:24
This was referenced Oct 8, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

run-bittensor-cli-tests Runs BTCLI tests. run-bittensor-sdk-tests Runs Bittensor SDK tests.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants