Skip to content

Sync helpers

sync

Synchronous facade over the async Client, for scripts and Jupyter.

SyncWorkflowHandle

SyncWorkflowHandle(async_handle, runner)

Blocking wrapper around an async workflow handle.

SyncScheduleHandle

SyncScheduleHandle(async_handle, runner)

Blocking wrapper around an async schedule handle.

SyncStandaloneActivityHandle

SyncStandaloneActivityHandle(async_handle, runner)

Blocking wrapper around an async standalone activity handle.

Client

Client(base_url, *, token=None, control_token=None, worker_token=None, namespace='default', timeout=60.0, retry_policy=None, metrics=None, external_storage=None, external_storage_threshold_bytes=None, external_storage_cache=None)

Blocking wrapper around the async client.

The client keeps one event loop for its lifetime so its async HTTP connection pool and returned handles always run on the loop that owns them.