Skip to content

feat: add cloud run to serverless worker#4628

Draft
lennessyy wants to merge 7 commits into
mainfrom
serverless-worker-cloud-run
Draft

feat: add cloud run to serverless worker#4628
lennessyy wants to merge 7 commits into
mainfrom
serverless-worker-cloud-run

Conversation

@lennessyy

@lennessyy lennessyy commented May 28, 2026

Copy link
Copy Markdown
Contributor

What does this PR do?

  • Add cloud run to serverless worker

Notes to reviewers

┆Attachments: EDU-6440 feat: add cloud run to serverless worker

@vercel

vercel Bot commented May 28, 2026

Copy link
Copy Markdown

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

Project Deployment Actions Updated (UTC)
temporal-documentation Ready Ready Preview, Comment Jul 24, 2026 11:57pm

Request Review

@github-actions

github-actions Bot commented May 28, 2026

Copy link
Copy Markdown
Contributor

📖 Docs PR preview links

@lennessyy lennessyy self-assigned this Jun 2, 2026
# Conflicts:
#	docs/encyclopedia/workers/serverless-workers/index.mdx
- Fix sidebar doc ID: index -> serverless-workers (matches frontmatter id)
- Fix MDX anchor syntax in autoscaling.mdx: {#anchor} -> {/* #anchor */}
Instead of a shared autoscaling page split by provider, each compute
provider gets its own page covering autoscaling, versioning, and
lifecycle. The index page keeps section headings but links to the
provider-specific pages for details.

- Create aws-lambda.mdx with Lambda autoscaling + versioning content
- Create cloud-run.mdx as a stub for upcoming Cloud Run content
- Delete autoscaling.mdx (content moved to aws-lambda.mdx)
- Update index.mdx sections to link to provider pages
- Update sidebars
… pages

- Add Python SDK page for wiring OpenTelemetry on a Cloud Run worker pool
  (Snipsync-sourced from the samples-python gcp_open_telemetry sample).
- Add the GCP Cloud Run deploy guide and encyclopedia page (autoscaling with
  immediate + periodic re-sizing, scale-in, lifecycle, no_sync_quiet_ms).
- Make the shared Serverless Workers encyclopedia index provider-neutral: nest
  Compute providers under the intro, stub Autoscaling/Worker lifecycle to the
  per-provider pages, and remove Lambda-only invocation-model wording.
- Move the Lambda-specific Worker lifecycle and long-running-Activity tuning
  content onto the AWS Lambda encyclopedia page; repoint inbound anchors.
- Restructure the AWS Lambda deploy pages into an aws-lambda/ subdirectory with
  redirects; update sidebars.
- Deploy-guide fixes from an end-to-end dogfooding pass: invoker SA naming,
  --namespace on set-current-version/workflow start, note the confirmation
  prompt, and complete the logs command.
Resolve conflicts:
- vercel.json: keep both the self-hosted-setup redirect and main's new
  redirects (saga-pattern, disaster-recovery, multi-region-failover,
  deployment-patterns).
- serverless-workers.mdx: keep this branch's split into a directory
  (index/aws-lambda/cloud-run); main's only change was an import
  consolidation, now applied to the new files.

Update imports broken by the components refactor (#4884): CaptionedImage
and SdkTabs now come from the @site/src/components barrel.
The WCI holds capacity while sync match failures are still occurring, and it applies a cooldown before reducing the pool, so it does not remove instances that are about to be needed again.
When there is no work, the WCI can scale the pool to zero; the next sync match failure or backlog scales it back up.

## Worker Versioning {/* #worker-versioning */}

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] reported by reviewdog 🐶
[Temporal.Headings] 'Worker Versioning **************************' should use sentence-style capitalization.

The Worker starts, creates a fresh client connection, processes multiple Tasks until near the execution time limit, and then shuts down gracefully.
There is no shared state across invocations.

## Worker Versioning {/* #worker-versioning */}

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] reported by reviewdog 🐶
[Temporal.Headings] 'Worker Versioning **************************' should use sentence-style capitalization.


:::

### How the Versioning Behavior changes rollout {/* #rollout-by-behavior */}

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] reported by reviewdog 🐶
[Temporal.Headings] 'How the Versioning Behavior changes rollout ****************************' should use sentence-style capitalization.


Containerize the Worker, push the image to Artifact Registry, and create the Worker Pool.

### i. Containerize the Worker {/* #containerize */}

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] reported by reviewdog 🐶
[Temporal.Headings] 'i. Containerize the Worker *********************' should use sentence-style capitalization.

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