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

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