feat: add cloud run to serverless worker#4628
Conversation
|
The latest updates on your projects. Learn more about Vercel for GitHub.
|
📖 Docs PR preview links
|
# 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 */} |
There was a problem hiding this comment.
📝 [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 */} |
There was a problem hiding this comment.
📝 [vale] reported by reviewdog 🐶
[Temporal.Headings] 'Worker Versioning **************************' should use sentence-style capitalization.
|
|
||
| ::: | ||
|
|
||
| ### How the Versioning Behavior changes rollout {/* #rollout-by-behavior */} |
There was a problem hiding this comment.
📝 [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 */} |
There was a problem hiding this comment.
📝 [vale] reported by reviewdog 🐶
[Temporal.Headings] 'i. Containerize the Worker *********************' should use sentence-style capitalization.
What does this PR do?
Notes to reviewers
┆Attachments: EDU-6440 feat: add cloud run to serverless worker