Skip to content

docs: add Node and Bun process worker deployment guide#630

Open
jumski wants to merge 1 commit into
portable-worker-bun-smokefrom
portable-worker-docs
Open

docs: add Node and Bun process worker deployment guide#630
jumski wants to merge 1 commit into
portable-worker-bun-smokefrom
portable-worker-docs

Conversation

@jumski
Copy link
Copy Markdown
Contributor

@jumski jumski commented Jun 7, 2026

Adds documentation and navigation for deploying pgflow workers as long-running Node or Bun processes on hosts like Railway, Fly, Docker, or VMs.

The new guide covers installing the npm package, writing a worker script, required environment variables (DATABASE_URL, SUPABASE_URL, SUPABASE_SERVICE_ROLE_KEY), running the worker under Node or Bun, graceful shutdown behavior on SIGTERM/SIGINT/SIGQUIT, health monitoring via database queries, and how process workers differ from HTTP-started workers in that ensure_workers() does not restart them.

The deploy overview page and sidebar navigation are updated to include the new guide, the Supabase deployment page gains a callout pointing process-hosted deployments to the new guide, and the edge-worker README replaces its JSR-only warning with a note that the package is published to both JSR and npm with guidance on which to use for each runtime.

Copy link
Copy Markdown
Contributor Author

jumski commented Jun 7, 2026

@nx-cloud
Copy link
Copy Markdown

nx-cloud Bot commented Jun 7, 2026

View your CI Pipeline Execution ↗ for commit e05006e

Command Status Duration Result
nx affected -t lint typecheck test --parallel -... ❌ Failed 26s View ↗
nx run edge-worker:test:integration ✅ Succeeded 5m 58s View ↗
nx run cli:e2e ✅ Succeeded 3s View ↗
nx run client:e2e ✅ Succeeded 1m 15s View ↗
nx run edge-worker:e2e ✅ Succeeded 30s View ↗
nx run core:pgtap ✅ Succeeded 1s View ↗
nx run edge-worker:smoke:bun ✅ Succeeded 3s View ↗

💡 Dealing with memory or CPU issues? See memory and CPU details with the resource usage add-on ↗.


☁️ Nx Cloud last updated this comment at 2026-06-07 23:34:38 UTC

@jumski jumski force-pushed the portable-worker-bun-smoke branch from 5d91440 to ab81d38 Compare June 8, 2026 17:50
@jumski jumski force-pushed the portable-worker-docs branch from e05006e to 475fe79 Compare June 8, 2026 17:50
@changeset-bot
Copy link
Copy Markdown

changeset-bot Bot commented Jun 8, 2026

⚠️ No Changeset found

Latest commit: 475fe79

Merging this PR will not cause a version bump for any packages. If these changes should not result in a new version, you're good to go. If these changes should result in a version bump, you need to add a changeset.

This PR includes no changesets

When changesets are added to this PR, you'll see the packages that this PR includes changesets for and the associated semver types

Click here to learn what changesets are, and how to add one.

Click here if you're a maintainer who wants to add a changeset to this PR

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