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.

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.12.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.12.0
File Size Uploaded
durabletask-1.12.0.tar.gz 190.1 kB Details

Built distribution (wheel)

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

Total release size: 407.4 kB

Release files / durabletask-1.12.0.tar.gz

Download URL durabletask-1.12.0.tar.gz
Size 190.1 kB
Tags Source
SHA-256 checksum
How to use checksums
8d5f04d90ab8020ee4a056fae9117bb92cf8e01c8e9dff6b7ac1b814923dde28
BLAKE2b-256 checksum
How to use checksums
3800410e2ff9016e9a3f838dc17824cd9d91656c4acf5618ea8732d42fa66b30
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via RestSharp/106.13.0.0

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

Download URL durabletask-1.12.0-py3-none-any.whl
Size 217.4 kB
Tags Python 3
SHA-256 checksum
How to use checksums
994d7dc554cadf3be36d1996b0499c2a451abb896fac28aa3e159b182c81c22f
BLAKE2b-256 checksum
How to use checksums
e40914c5447c21c472a8a2039e5a74b53e1941c39cbc83d50b973eb752bd3977
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via RestSharp/106.13.0.0

Release history Release notifications | RSS feed

This release

1.12.0 This release

2 release files

1.11.0

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