dapr / dapr/python-sdk

[WORKFLOW SDK FEATURE REQUEST] Make `WorkflowRuntime` async native

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

説明

The worker runs activities on a background thread while the application runs on its own loop. This has caused `attached to a different loop` errors on async activities that use async grpc clients. There are patches for lazy initialization of grpc clients so they start on the caller's loop, but they are not ideal.

Depends on https://github.com/dapr/python-sdk/issues/1089

---
Acceptance criteria:
- [ ] `async with WorkflowRuntime()` and `await wfr.run()` run on the caller's loop
- [ ] Async activities execute on the caller's loop
- [ ] No resources are leaked
- [ ] Sync `start()` / `shutdown()` still works

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

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

評価

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

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

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