Skip to content

Latest commit

 

History

History

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
 
 
 
 

README.md

Orchestration history export

This sample shows how to use durabletask.extensions.history_export to export the event history of terminal orchestrations to Azure Blob Storage. It uses the in-memory backend, so it only needs Azurite (the local Azure Storage emulator) — no other services or accounts.

Prerequisites

pip install durabletask[history-export-azure]

Start Azurite locally:

azurite --silent --blobPort 10000

Run the sample

python app.py

The script:

  1. Spins up an in-memory durabletask backend.
  2. Schedules five small orchestrations to populate terminal history.
  3. Creates an export job that scans the recent time window and writes each instance's history to the history-export-sample container as gzipped JSONL.
  4. Polls the job through ExportHistoryClient.wait_for_job and prints the final status.

Tip

Set STORAGE_CONNECTION_STRING to point at a real Azure Storage account instead of Azurite. Set EXPORT_CONTAINER to override the default destination container name (history-export-sample).