dapr / dapr/python-sdk

[WORKFLOW SDK FEATURE REQUEST] Use `grpc.aio` in the durabletask worker

オープン
#1,089 コメント 3 件 リアクション 0 件 担当者 0 名 GitHub で見る
dapr-ext-workflow kind/enhancement
主要言語
Python
スター
272
フォーク
152
PR マージ指標
30日以内にマージされた PR はありません

説明

`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

コントリビューションガイド

コントリビューションガイドを開く

評価

この issue はまだ評価されていません。

新しい issue をメールで受け取る

初心者向けの GitHub issue を短くまとめたダイジェスト。