dapr / dapr/python-sdk

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

未关闭
#1,090 3 条评论 0 个 reaction 已指派 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 摘要。