758 B
758 B
Actor.start_remote_task() inserts a context before sending Start, but startup errors other than cancellation escape without removing or closing that caller state. Serialization errors, acknowledgement timeouts, malformed acknowledgements and remote authorization errors can therefore leak context-registry entries.
git diff HEAD~1..HEAD -- tractor/runtime/_runtime.py tests/test_context_stream_semantics.py
Cover the complete send, acknowledgement and validation phase with exceptional cleanup. Attempt remote cancellation only when publication is known complete or protocol-safe, and always release local state.