resonate-basic-ephemeral-world-usage-python

Coordinate Resonate durable function invocations from ephemeral Python processes.

6|Updated Jan 8, 2026
One-click install
npx skills add https://github.com/resonatehq/resonate-skills --skill resonate-basic-ephemeral-world-usage-python
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: resonate-basic-ephemeral-world-usage-python
Source: https://github.com/resonatehq/resonate-skills/tree/main/resonate-basic-ephemeral-world-usage-python
Command: npx skills add https://github.com/resonatehq/resonate-skills --skill resonate-basic-ephemeral-world-usage-python

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

Many Python processes need to start, coordinate, and monitor durable workflows but lack a deterministic, crash-safe client-side API to do so; this Skill explains how to reliably initialize a Resonate client, register generator-based durable functions, invoke them across process boundaries, and manage their lifecycle from ephemeral code.

Core Features & Use Cases

  • Client initialization: local and remote Resonate client construction for tests, scripts, and production processes.
  • Function registration: register Python generator functions as durable workflows and control their RPC identity.
  • Invocation patterns: synchronous and asynchronous same-process and remote invocations (run, begin_run, rpc, begin_rpc), subscription to existing invocations, and invocation options (timeout, retry policy, tags, idempotency, version).
  • Dependency & promise management: set heavy ephemeral dependencies for durable code to reference and create/resolve external promises for human-in-the-loop or webhook-driven flows.
  • Worker lifecycle: run long-polling workers in remote mode and integrate with web frameworks or background loops.
  • Use case: an HTTP handler that begins a background order-processing workflow and returns immediately while the durable generator consumes external approvals via promises.

Quick Start

Initialize a Resonate client in Python, register a generator function to process orders, and run it with a stable invocation id to start durable processing.

Frequently Asked Questions about resonate-basic-ephemeral-world-usage-python

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I invoke durable Python workflows from ephemeral processes like FastAPI handlers?

You can invoke durable Python workflows from ephemeral processes by initializing a Resonate client, registering generator functions, and using synchronous or asynchronous invocation modes like run or begin_run to start processing across process boundaries.

What is the best way to manage external promise lifecycles for human-in-the-loop workflows in Python?

To manage external promise lifecycles for human-in-the-loop workflows in Python, use the Resonate client to create and resolve external promises, allowing durable generators to wait on external approvals or webhook-driven events safely.

Can I use durable workflows with Python CLI tools and background workers?

Yes, durable workflows work with Python CLI tools and background workers by registering generator functions with a Resonate client and running long-polling workers in remote mode to handle invocations.

How do I configure retry policies and idempotency for Python RPC invocations?

You can configure retry policies and idempotency for Python RPC invocations by passing invocation options such as timeout, retry policy, tags, and versioning when calling run, begin_run, rpc, or begin_rpc on the Resonate client.

Does Python durable execution support dependency injection for heavy ephemeral resources?

Python durable execution supports dependency injection by setting heavy ephemeral dependencies on the Resonate client, allowing registered durable generator functions to reference these resources during their execution lifecycle.

How do I subscribe to existing durable workflow invocations from a Python script?

You can subscribe to existing durable workflow invocations from a Python script by initializing a Resonate client and using its subscription features to monitor the status and results of invocations started by other processes.