dapr / dapr/python-sdk

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

Offen
#1,090 3 Kommentare 0 Reaktionen 0 zugewiesene Personen Auf GitHub ansehen
dapr-ext-workflow kind/enhancement
Vorherrschende Sprache
Python
Sterne
272
Forks
152
PR-Merge-Kennzahlen
Keine gemergten PRs in 30 T.

Beschreibung

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

Beitragsleitfaden

Beitragsleitfaden öffnen

Bewertung

Dieses Issue wurde noch nicht bewertet.

Neue Issues direkt in Ihr Postfach

Eine kurze Übersicht über anfängerfreundliche GitHub-Issues.