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.1

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.1
File Size Uploaded
durabletask-1.10.1.tar.gz 188.2 kB Details

Built distribution (wheel)

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

Total release size: 403.9 kB

Release files / durabletask-1.10.1.tar.gz

Download URL durabletask-1.10.1.tar.gz
Size 188.2 kB
Tags Source
SHA-256 checksum
How to use checksums
d204b5c0a08932d774cce08425886c50822f3f6fc21577425e6098db10a4773d
BLAKE2b-256 checksum
How to use checksums
f2f1b63ac722c233f1aeb19dc35677a41f3d8278e3fcb378c94e3c49fa9d2b49
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via RestSharp/106.13.0.0

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

Download URL durabletask-1.10.1-py3-none-any.whl
Size 215.6 kB
Tags Python 3
SHA-256 checksum
How to use checksums
2b689e78e77b518dc9522b28e657f2368d733f4ec5b9e2933237f5cfc042b456
BLAKE2b-256 checksum
How to use checksums
d10017c8c3a43306ee8073edf32c950cc51a33e79cd55e1acdb32997037ace1c
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.1 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