Skip to content

[WORKFLOW SDK FEATURE REQUEST] Make WorkflowRuntime async native #1090

@seherv

Description

@seherv

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 #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

Metadata

Metadata

Assignees

Type

No type
No fields configured for issues without a type.

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions