Skip to main content

Durable Task SDK for Python

License: MIT Build Validation PyPI version

This repository contains Python SDKs for building durable orchestrations with Azure Durable Task Scheduler and Azure Durable Functions:

References

Optional Features

Large Payload Externalization

Install the azure-blob-payloads extra to automatically offload oversized orchestration payloads to Azure Blob Storage:

pip install durabletask[azure-blob-payloads]

See the feature documentation and the example for usage details.

Failure Details Properties

Configure an ExceptionPropertiesProvider to attach portable diagnostic properties to activity, entity, and orchestration failures:

from durabletask import ExceptionPropertiesProvider
from durabletask.worker import TaskHubGrpcWorker


class FailureProperties(ExceptionPropertiesProvider):
    def get_exception_properties(self, exception: Exception):
        return {"error_code": getattr(exception, "error_code", None)}


worker = TaskHubGrpcWorker(exception_properties_provider=FailureProperties())

Properties support None, booleans, numbers, strings, nested mappings, and lists. They are available from TaskFailedError.details, orchestration state, and history as FailureDetails.properties.

[!NOTE] Python intentionally treats .NET's dt: and dto: property strings as ordinary strings, matching the Java SDK. Consequently, datetime values do not retain their type across Python/.NET failure-details property round trips; this is a .NET SDK parity gap.

Trademarks

This project may contain trademarks or logos for projects, products, or services. Authorized use of Microsoft trademarks or logos is subject to and must follow Microsoft's Trademark & Brand Guidelines. Use of Microsoft trademarks or logos in modified versions of this project must not cause confusion or imply Microsoft sponsorship. Any use of third-party trademarks or logos are subject to those third-party's policies.

Metadata

Release files for durabletask 1.10.0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for durabletask 1.10.0
File Size Uploaded
durabletask-1.10.0.tar.gz 188.3 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for durabletask 1.10.0
File Interpreter ABI Platform
durabletask-1.10.0-py3-none-any.whl Python 3 none any Details

Total release size: 403.9 kB

Release files / durabletask-1.10.0.tar.gz

Download URL durabletask-1.10.0.tar.gz
Size 188.3 kB
Tags Source
SHA-256 checksum
How to use checksums
4acfbc182a4fa3c34c99de8e1fd3212d78a461c292bc9719cba5b571dee290a5
BLAKE2b-256 checksum
How to use checksums
a3428d6573e472422237e00029fb648224c0297ee18659074e779ab9f9d3f013
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via RestSharp/106.13.0.0

Release files / durabletask-1.10.0-py3-none-any.whl

Download URL durabletask-1.10.0-py3-none-any.whl
Size 215.6 kB
Tags Python 3
SHA-256 checksum
How to use checksums
6265d369c04ae7b076fc02e364efcb17f18f59ee5966d281816fb512d0c7e675
BLAKE2b-256 checksum
How to use checksums
0a37a7c57f74a3e9433ca93185bedfb91989a59ce2f3446b780af594b2280522
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via RestSharp/106.13.0.0

Release history Release notifications | RSS feed

1.11.0

2 release files

This release

1.10.0 This release

2 release files

1.9.0

2 release files

1.8.0

2 release files

1.7.2

2 release files

1.7.1

2 release files

1.7.0

2 release files

1.6.0

2 release files

1.5.0

2 release files

1.4.0

2 release files

1.3.0

2 release files

1.2.0

2 release files

1.1.0

2 release files

1.0.0

2 release files

0.5.0

2 release files

0.4.1

2 release files

0.4.0

2 release files

0.3.0

2 release files

0.2.1

2 release files

0.2.0

2 release files

0.1.0

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page