Repository navigation
fix: stop Alpaca streams after provider faults - #129
Closed
stefan-jansen wants to merge 3 commits into
Closed
stefan-jansen wants to merge 3 commits into
stefan-jansen wants to merge 3 commits into
Conversation
Contributor
Author
|
Superseded by the combined maintainer-directed maintenance PR #121 to avoid qualifying and merging this queue separately. This PR head and its regression/documentation evidence are preserved in #121 and in a verified recovery archive. The accepted issue remains open until the combined fix lands; this closure does not claim the fix is merged. Follow-up work continues in #121. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
After an order-state fault clears Alpaca connection health, public disconnect() returns without stopping the retained trading stream. Clean up retained stream/client resources regardless of the health flag, while preserving idempotent disconnect.
Closes #128.
Regression:
uv run pytest -q tests/unit/test_alpaca_broker.py::test_disconnect_stops_the_stream_after_a_provider_order_fault.No release, deployment, live-money order or credentialed provider claim is included. A release requires matching Alpaca provider evidence for the changed adapter.
AI assistance: Codex reproduced the shutdown failure, implemented the cleanup correction, reviewed the diff and ran fail/pass verification.