Skip to content

Draft Modal Serverless Worker documentation - #5779

Draft
lennessyy wants to merge 46 commits into
mainfrom
docs/modal-serverless-workers
Draft

lennessyy wants to merge 46 commits into
mainfrom
docs/modal-serverless-workers

Conversation

@lennessyy

@lennessyy lennessyy commented Nov 20, 2026 •

Copy link
Copy Markdown
Contributor

What does this PR do?

Drafts Modal Serverless Worker documentation using the Lambda pages as the structural model:

  • Deployment: package the Python Worker, configure credentials in both directions, register compute, and verify automatic invocation.
  • Python SDK: use the released temporalio-modal-function-worker==0.0.1 integration.
  • Concepts: explain invocation and container lifetimes, shutdown budgets, Temporal and Modal autoscaling, and version pinning.
  • Troubleshooting: distinguish invocation, authentication, routing, timeout, and capacity failures.

All four pages render in the PR preview and appear beside the Lambda pages in the sidebar. readme/MODAL-DRAFT.md records source evidence, publication dependencies, and follow-up work.

Notes to reviewers

Keep this PR as a draft pending the Modal WCI provider change (temporalio/temporal-auto-scaled-workers#154), confirmed Cloud rollout and OAuth instructions, and end-to-end testing in an authorized environment. The published Python package does not establish provider availability.

Validation:

  • CI-scoped Vale, direct MDX compilation, 26 internal links/anchors, index-slug and orphan checks passed.
  • Extracted Python example completed a Workflow and Activity locally using the published integration; direct Pyright passed.
  • The repository Python sample checker reports one missing-module finding because its dependency discovery does not supply the separately named integration distribution. The installed-environment type check and execution test passed.
  • Live Modal deployment and autoscaling still need end-to-end verification.

@vercel

vercel Bot commented Nov 20, 2026 •

Copy link
Copy Markdown

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated
temporal-documentation Ready Ready Preview Dec 4, 2026 12:14am UTC

Request Review

@github-actions

github-actions Bot commented Nov 20, 2026 •

Copy link
Copy Markdown
Contributor

Snipsync coverage

SDK code lines in docs/ that come from Snipsync: 62.7% → 62.7% (±0.0 pts), 26,620 of 42,432 lines.

Section Snipsync lines Inline lines Snipsync % Change
develop/python 5,748 → 5,796 536 91.5% → 91.5% ±0.0 pts
production-deployment 116 → 145 746 13.5% → 16.3% +2.8 pts
All sections

All languages: 53.7% (27,487 of 51,199 lines).

Section Snipsync lines Inline lines Snipsync %
design-patterns 26 7,808 0.3%
develop/python 5,796 536 91.5%
develop/java 4,639 49 99.0%
guides 34 4,446 0.8%
develop/go 4,384 93 97.9%
develop/typescript 3,757 313 92.3%
develop/dotnet 3,029 7 99.8%
develop/rust 1,571 0 100.0%
develop/php 1,394 0 100.0%
develop/ruby 1,302 2 99.8%
develop 484 606 44.4%
production-deployment 145 746 16.3%
encyclopedia 0 837 0.0%
develop/worker-performance 48 177 21.3%
cloud 0 127 0.0%
references 0 48 0.0%
best-practices 11 17 39.3%
Language Snipsync lines Inline lines Snipsync %
Python 5,968 6,568 47.6%
Go 4,524 3,194 58.6%
Java 4,724 2,593 64.6%
TypeScript 3,924 2,777 58.6%
C# 3,104 464 87.0%
Rust 1,609 31 98.1%
Ruby 1,373 161 89.5%
PHP 1,394 24 98.3%
Snipsync origin Lines
temporalio/documentation-sdk-code-examples 21,329
temporalio/samples-python 2,821
temporalio/samples-typescript 743
temporalio/samples-dotnet 655
temporalio/features 464
temporalio/samples-go 413
temporalio/samples-java 184
temporalio/reference-app-orders-go 11

Compared with d32a69a. Counts non-blank lines in fenced code blocks and <CodeSnippet> elements tagged with an SDK language. Hand-written code isn't compiled anywhere; code Snipsync pulls from a sample repository is built in that repository's CI. See UTILITIES.md.

@github-actions

github-actions Bot commented Nov 20, 2026 •

Copy link
Copy Markdown
Contributor

📖 Docs PR preview links


Confirm that `temporal-worker` contains a function named `temporal_worker` in the intended environment.

### 2.3 Deploy a function for each Build ID {/* #deploy-a-function-for-each-build */}

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

📝 [vale] <Temporal.Headings> reported by reviewdog 🐶
'2.3 Deploy a function for each Build ID *****************************************' should use sentence-style capitalization.

This branch was successfully deployed

1 active deployment
Preview — dad78248 Deployed Dec 4, 2026 by vercel[bot]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant