[WORKFLOW SDK FEATURE REQUEST] Use `grpc.aio` in the durabletask worker
Aperta
dapr-ext-workflow
kind/enhancement
- Lingua principale
- Python
- Stelle
- 272
- Fork
- 152
- Metriche di merge delle PR
- Nessuna PR unita negli ultimi 30g
Descrizione
`TaskHubGrpcWorker` consumes the sidecar stream on a dedicated `StreamReader` thread and pushes things to the event loop through a queue. We already have grpc.aio in the SDK, we can consume it asynchronously and remove the thread and the queue.
This should not change the public API.
----
Acceptance criteria:
- [ ] The worker consumes the stream asynchronously
- [ ] `WorkflowRuntime.start()` / `.shutdown()` still works
- [ ] Reconnect on stream drop and on transient errors still works
- [ ] No leaked resources on shutdown
Guida per i contributori
Apri la guida per i contributori
Valutazione
Questa issue non è ancora stata valutata.