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-0.0.1.tar.gz (12.2 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-0.0.1.tar.gz.

File metadata

File hashes

Hashes for temporal_replayer_adapter_python-0.0.1.tar.gz
Algorithm Hash digest
SHA256 97b38d7b78acfe46aa1b59a0a18ae882cd1a49e58a08417ded52b05b93436185
MD5 07d1c8bdaaf43f2e1b775fcf98f97c5a
BLAKE2b-256 9a2dccc310663d800bb1150655e432876e2edc88833c9d081b6c7be4fc501f54

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for temporal_replayer_adapter_python-0.0.1-py3-none-any.whl
Algorithm Hash digest
SHA256 b5293c75d810159801c957769390dae68f77fd741e4f43ff1adadf7463afc7ab
MD5 f5a01c7850fc73edc6c23c48ea760469
BLAKE2b-256 8fbd44e867abfbe742e1acf028d5337618abd1468ca40add6709475ecd1fd729

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