Skip to content

Conversation

@Oxyjun
Copy link
Contributor

@Oxyjun Oxyjun commented Jul 28, 2025

Summary

Screenshots (optional)

Documentation checklist

  • The documentation style guide has been adhered to.
  • If a larger change - such as adding a new page- an issue has been opened in relation to any incorrect or out of date information that this PR fixes.
  • Files which have changed name or location have been allocated redirects.

@Oxyjun Oxyjun requested review from a team, celso and elithrar as code owners July 28, 2025 12:40
@Oxyjun Oxyjun self-assigned this Jul 28, 2025
@github-actions github-actions bot added product:workflows Workflows: https://developers.cloudflare.com/workflows/ size/m labels Jul 28, 2025
@github-actions
Copy link
Contributor

This pull request requires reviews from CODEOWNERS as it changes files that match the following patterns:

Pattern Owners
/src/content/docs/workflows/ @elithrar, @celso, @cloudflare/pcx-technical-writing

@Caio-Nogueira Caio-Nogueira force-pushed the jun/workflows/python-sdk branch 2 times, most recently from ff6200a to 939d1cf Compare August 1, 2025 09:50
@Caio-Nogueira Caio-Nogueira force-pushed the jun/workflows/python-sdk branch from 1201284 to 3e49cb0 Compare August 4, 2025 14:32
@Caio-Nogueira Caio-Nogueira force-pushed the jun/workflows/python-sdk branch from 3e49cb0 to a5a4596 Compare August 4, 2025 15:04
@Caio-Nogueira Caio-Nogueira force-pushed the jun/workflows/python-sdk branch from a5a4596 to 0204fe3 Compare August 6, 2025 13:10

You must add the `python_workflows` compatibility flag to your `wrangler.toml` file, as well as `python_workers`.

Join the #python-workflows channel in the [Cloudflare Developers Discord](https://discord.cloudflare.com/) and let us know what you'd like to see next.
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Do we want to support another discord channel? Seems like we could just invite them to the #workflows channel itself?

Not sure if this is standard for betas though.


## Get Started

Similarly to Typescript, the main entrypoint for a Python workflow is the [`WorkflowEntrypoint`](/workflows/build/workers-api/#workflowentrypoint) class. Your workflow logic should exist inside the [`run`](/workflows/build/workers-api/#run) handler. In a Python workflow, this handler is named `on_run`.
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Minor grammatical nit, not sure if we need "Similarly to Typescript", my suspicion is that Python users are going to be net new and not users of of our Typescript SDK.

@Caio-Nogueira Caio-Nogueira merged commit 5b62f09 into production Aug 21, 2025
10 checks passed
@Caio-Nogueira Caio-Nogueira deleted the jun/workflows/python-sdk branch August 21, 2025 09:27
maxvp pushed a commit that referenced this pull request Aug 24, 2025
* Creating new Python SDK folder

* Adds snippets for all step methods and event param

---------

Co-authored-by: Caio Nogueira <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

do-not-merge-yet product:workflows Workflows: https://developers.cloudflare.com/workflows/ size/m

Projects

None yet

Development

Successfully merging this pull request may close these issues.

7 participants