A closer look at Python Workflows, now in beta
Read Full ArticleSummary
The article introduces Python Workflows in Cloudflare, enabling developers to orchestrate multi-step applications using Python. It highlights the transition from TypeScript to Python, emphasizing the importance of Python in data pipelines and automation. The article explains how Workflows automate idempotent steps with built-in error handling and retry mechanisms, providing practical examples of applications such as training large language models and managing grocery lists. Additionally, it discusses the underlying architecture, including the use of Pyodide for language bridging and the implementation of a Pythonic SDK for ease of use.
Key Learnings
- 1Python Workflows allow for the orchestration of multi-step applications, enhancing automation in data pipelines and AI tasks.
- 2The integration of Python into Cloudflare Workers facilitates the use of familiar libraries and idiomatic coding practices for developers.
- 3Workflows support idempotent steps with error handling and retries, improving the reliability of long-running processes.
- 4The architecture leverages durable execution and RPC to bridge Python and JavaScript, ensuring seamless operation across languages.
- 5The declarative approach in defining workflows simplifies dependency management and enhances code readability.
Who Should Read This
Senior Cloud Engineers implementing orchestration solutions in Python for scalable applications
Test Your Knowledge
What are the advantages of using Python for orchestrating workflows compared to TypeScript?
How does the integration of Pyodide facilitate the execution of Python code in Cloudflare Workers?
What are the implications of using idempotent steps in workflow automation?
How does the architecture of Cloudflare Workflows ensure feature parity between Python and JavaScript SDKs?
In what scenarios might a developer choose to implement a DAG structure within their workflows?
Topics
More articles about Python
Explore Python engineering →Python Typing Survey 2025: Code Quality and Flexibility As Top Reasons for Typing Adoption
The 2025 Typed Python Survey reveals significant insights into the adoption and perception of Python's type system among developers. With a majority of respondents utilizing type hints regularly, the...
From Python3.8 to Python3.10: Our Journey Through a Memory Leak
This article chronicles the experience of upgrading Python services from version 3.8 to 3.10 at Lyft, highlighting a significant memory leak issue encountered during the transition. The author...
Python Workers redux: fast cold starts, packages, and a uv-first workflow
The article discusses the advancements in Python Workers on the Cloudflare platform, highlighting improvements in cold start times, package support, and deployment processes. It emphasizes the...
Join the OSS AI Summit: Building with LangChain Event
The OSS AI Summit is an event aimed at advancing AI development practices, particularly through the use of LangChain. It will cover essential components of LangChain, including agents and tools, and...
Build smarter AI agents: new tools now available for the DigitalOcean Gradient™ AI Platform
The article introduces new tools available on the DigitalOcean Gradient AI Platform aimed at enhancing AI application development. It highlights the Gradient AI Python SDK, which consolidates access...
More from Cloudflare Engineering
View Cloudflare engineering blogs →Complexity is a choice. SASE migrations shouldn’t take years.
The article emphasizes the shift in the cybersecurity landscape regarding SASE migrations, arguing that complexity is a choice rather than an inevitability. It showcases how Cloudflare's SASE...
Active defense: introducing a stateful vulnerability scanner for APIs
The article introduces Cloudflare's new stateful vulnerability scanner designed specifically for APIs, addressing the limitations of traditional defensive security measures. It highlights the...
Fixing request smuggling vulnerabilities in Pingora OSS deployments
The article addresses critical HTTP/1.x request smuggling vulnerabilities identified in the Pingora open source framework, particularly when deployed as an ingress proxy. It outlines the nature of...
From the endpoint to the prompt: a unified data security vision in Cloudflare One
The article outlines Cloudflare One's evolution in data security, emphasizing a unified approach that encompasses protection in transit, visibility and control at rest, and enforcement in use. It...
A QUICker SASE client: re-building Proxy Mode
The article outlines the challenges faced by security teams when implementing proxy modes in SASE environments, particularly the performance issues associated with traditional TCP implementations. It...