Skip to content

[Workflows] Fix docs using code review#28208

Merged
pombosilva merged 1 commit into
productionfrom
osilva/fix-workflows-docs
Feb 9, 2026
Merged

[Workflows] Fix docs using code review#28208
pombosilva merged 1 commit into
productionfrom
osilva/fix-workflows-docs

Conversation

@pombosilva

@pombosilva pombosilva commented Feb 9, 2026

Copy link
Copy Markdown
Contributor

Summary

Fixes multiple issues in Workflows documentation including missing imports, incorrect async/await usage, and code examples that wouldn't work as written.

  • durable-agents.mdx: Add missing import { useState } in React WebSocket example
  • bindings.mdx: Fix main entry point from .ts to .py; replace incorrect import with from workers import WorkflowEntrypoint; wrap standalone code snippets in proper WorkerEntrypoint class context with self.env instead of bare env references
  • dag.mdx: Add missing await to step.sleep() call
  • index.mdx: Replace non-existent await_step(step_1, step_2) with correct sequential await pattern
  • python-workers-api.mdx: Add async keyword to run method signature; add missing import datetime for step.sleep_until example; add missing class imports
  • limits.mdx: Fix typo "5 second" → "5 seconds" in retry delay config; remove unused variable assignment

Screenshots (optional)

Documentation checklist

  • Is there a changelog entry (guidelines)? If you don't add one for something awesome and new (however small) — how will our customers find out? Changelogs are automatically posted to RSS feeds, the Discord, and X.
  • The change adheres to the documentation style guide.
  • 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.

@pombosilva
pombosilva requested a review from a team February 9, 2026 11:08
@github-actions github-actions Bot added product:workflows Workflows: https://developers.cloudflare.com/workflows/ size/s labels Feb 9, 2026
@github-actions

github-actions Bot commented Feb 9, 2026

Copy link
Copy Markdown
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, @mia303, @jonesphillip, @cloudflare/pcx-technical-writing

@elithrar

elithrar commented Feb 9, 2026

Copy link
Copy Markdown
Collaborator

@pombosilva all PRs need a description of the changes & fixes please.

@pombosilva
pombosilva merged commit d91c4a4 into production Feb 9, 2026
12 checks passed
@pombosilva
pombosilva deleted the osilva/fix-workflows-docs branch February 9, 2026 12:13
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

product:workflows Workflows: https://developers.cloudflare.com/workflows/ size/s

Projects

None yet

Development

Successfully merging this pull request may close these issues.

6 participants