dapr / dapr/python-sdk

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

Abierto
#1,090 3 comentarios 0 reacciones 0 asignados Ver en GitHub
dapr-ext-workflow kind/enhancement
Lenguaje dominante
Python
Estrellas
272
Forks
152
Métricas de merge de PR
Sin PR fusionados en 30 d

Descripción

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

Guía de contribución

Abrir la guía de contribución

Evaluación

Este issue todavía no se ha evaluado.

Recibe los nuevos issues en tu correo

Un resumen breve de issues de GitHub para principiantes.