Skip to content

Demonstrates how to delete a workflow history using the Temporal Python SDK

Notifications You must be signed in to change notification settings

temporal-sa/temporal-delete-workflow-history-python

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

1 Commit
 
 
 
 
 
 

Repository files navigation

delete-workflow-execution-python

This example shows how to delete a specific workflow history using the Temporal Python SDK

Set up Python Virtual Environment

python3 -m venv venv
source venv/bin/activate # On Windows, use `venv\Scripts\activate`
pip install temporalio

Run Locally

Be sure you set up your Python Virtual Environment before running the worker

python main.py <namespace> <workflow_id> <run_id>

Run Worker using Temporal Cloud

Be sure you set up your Python Virtual Environment before running the worker

# set up environment variables
export TEMPORAL_NAMESPACE=<namespace>.<accountId>
export TEMPORAL_ADDRESS=<namespace>.<accountId>.tmprl.cloud:7233
export TEMPORAL_TLS_CERT=/path/to/cert
export TEMPORAL_TLS_KEY=/path/to/key
# run the application
python main.py <namespace> <workflow_id> <run_id>

About

Demonstrates how to delete a workflow history using the Temporal Python SDK

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages