Skip to main content

Python Replayer Adapter for Temporal workflows with debugging capabilities

Project description

Python Replayer Adapter for Temporal

A Python adapter for debugging and replaying Temporal workflows with breakpoint support.

Features

  • Workflow Debugging: Comprehensive interceptors for debugging workflow execution
  • Breakpoint Support: Set breakpoints for standalone mode or integrate with IDE debugger
  • Dual Modes: Support for both standalone (JSON file) and IDE-integrated replay modes
  • Activity Debugging: Interceptors for activity execution debugging

Installation

# Install in development mode
pip install -e .

# Or install with development dependencies
pip install -e .[dev]

Quick Start

Standalone Mode

from replayer_adapter_python import *

# Configure replay
set_replay_mode(ReplayMode.STANDALONE)
set_breakpoints([5, 15, 30])

# Replay workflow
opts = ReplayOptions(history_file_path="workflow_history.json")
replay(opts, YourWorkflowClass)

IDE Integration Mode

from replayer_adapter_python import *

# Set IDE mode (connects via WFDBG_HISTORY_PORT env var)
set_replay_mode(ReplayMode.IDE)

# Replay with IDE debugger
opts = ReplayOptions()
replay(opts, YourWorkflowClass)

API Reference

Core Functions

  • set_replay_mode(mode): Set replay mode (ReplayMode.STANDALONE or ReplayMode.IDE)
  • set_breakpoints(event_ids): Set breakpoints for standalone mode
  • replay(opts, workflow_class): Main replay function

Classes

  • ReplayOptions: Configuration for replay settings
  • RunnerWorkerInterceptor: Main interceptor for workflow debugging

Environment Variables

  • WFDBG_HISTORY_PORT: Port for IDE debugger communication (default: 54578)

Dependencies

  • temporalio>=1.15.0
  • requests>=2.32.0

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

temporal_replayer_adapter_python-1.0.3.tar.gz (12.4 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

File details

Details for the file temporal_replayer_adapter_python-1.0.3.tar.gz.

File metadata

File hashes

Hashes for temporal_replayer_adapter_python-1.0.3.tar.gz
Algorithm Hash digest
SHA256 9ee9f9890f5a060ce65d237c373ef152489bc356d835ee8ef4d35d4096497ea4
MD5 065619e4edfaaf4a9b551c4326775461
BLAKE2b-256 85bde09afd19a25e5f11a8f23de1998b8f0e8a0974d20689a26ae2cd6c3db603

See more details on using hashes here.

File details

Details for the file temporal_replayer_adapter_python-1.0.3-py3-none-any.whl.

File metadata

File hashes

Hashes for temporal_replayer_adapter_python-1.0.3-py3-none-any.whl
Algorithm Hash digest
SHA256 aab62746724f4b53dc983bd2a37846a06ad6eaec1043cf81f655b091e32bcf75
MD5 cba83ca83e923ae66eb817756ecbeceb
BLAKE2b-256 d156fd6e264863e0b7c1b8ff1fec99d40b6c290bae797c9bce6fa01410af83f9

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page