samples-python icon indicating copy to clipboard operation
samples-python copied to clipboard

Samples for working with the Temporal Python SDK

Results 83 samples-python issues
Sort by recently updated
recently updated
newest added

## What was changed ## Why? ## Checklist 1. Closes 2. How was this tested: 3. Any docs updates needed?

### Is your feature request related to a problem? Please describe. We need to add end-to-end tests to OpenAI Agents SDK samples to ensure that they remain stable. ### Describe...

enhancement

Add a sample demonstrating how to make LLM calls from a workflow via an activity. This should use https://github.com/BerriAI/litellm. (It may make sense to add something like this to SDK...

enhancement

### Is your feature request related to a problem? Please describe. Add samples based on [OpenAI Agents SDK memory examples](https://github.com/openai/openai-agents-python/tree/main/examples/memory). ### Describe the solution you'd like 1. Wrap `sqlalchemy_session_example.py`. Run...

enhancement

Adds benign_application_error sample (worker, starter, activity, workflow, README). Demonstrates ApplicationError(category=ApplicationErrorCategory.BENIGN): BENIGN → activity failure logged at DEBUG, no activity-failure metrics Non-BENIGN → WARN log, metrics emitted Includes JSON logging +...

## What was changed ## Why? ## Checklist 1. Closes 2. How was this tested: 3. Any docs updates needed?

## What was changed With schedule_to_close, if the developer restarts the worker after the activity is scheduled, the activity will throw a non-retriable error after 5 minutes. Changed to start_to_close...

This sample demonstrates how to make MCP calls from a workflow, using the MCP Python SDK. The MCP server can be a standard `stdio` server, or it can be implemented...

### Is your feature request related to a problem? Please describe. There are many Temporal users that have existing Python code bases that are only sync, and for these users...

enhancement