Skip to content

Conversation

@jumski
Copy link
Contributor

@jumski jumski commented Dec 5, 2025

Add PostgreSQL extensions for pgflow worker management

This PR adds several PostgreSQL extensions to the Atlas development database to support pgflow worker management:

  • Added pg_cron for scheduled job execution
  • Added pg_net for making HTTP requests from SQL (needed for pinging edge functions)
  • Added pgsodium and supabase_vault for secure credential storage

The changes include:

  • Updated Dockerfile to install and configure these extensions
  • Modified the schema dump script to include schemas from the new extensions
  • Updated the baseline schema to include the new extensions
  • Renamed the Docker image to jumski/atlas-postgres-pgflow:latest to better reflect its purpose
  • Added proper configuration for shared preload libraries and other required settings

These extensions will enable pgflow to securely store credentials, make HTTP requests, and schedule recurring tasks for worker management.

@changeset-bot
Copy link

changeset-bot bot commented Dec 5, 2025

⚠️ No Changeset found

Latest commit: a529caf

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

@nx-cloud
Copy link

nx-cloud bot commented Dec 5, 2025

View your CI Pipeline Execution ↗ for commit a529caf

Command Status Duration Result
nx affected -t verify-exports --base=origin/mai... ✅ Succeeded 3s View ↗
nx run cli:e2e ✅ Succeeded 4s View ↗
nx affected -t build --configuration=production... ✅ Succeeded 31s View ↗
nx affected -t lint typecheck test --parallel -... ✅ Succeeded 41s View ↗
nx run client:e2e ✅ Succeeded 1m 9s View ↗
nx run edge-worker:test:integration ✅ Succeeded 3m 41s View ↗
nx run core:pgtap ✅ Succeeded <1s View ↗
nx run edge-worker:e2e ✅ Succeeded 47s View ↗

☁️ Nx Cloud last updated this comment at 2025-12-05 23:11:25 UTC

@jumski jumski force-pushed the 12-04-add_mark_worker_stopped_sql_function_for_graceful_shutdown_signaling branch from dbb4e58 to e6d1032 Compare December 5, 2025 09:24
@jumski jumski force-pushed the 12-04-add_pg_net_pg_cron_and_supabase_vault_extensions_for_worker_management branch from 8691cab to d1a041a Compare December 5, 2025 09:24
@jumski jumski force-pushed the 12-04-add_mark_worker_stopped_sql_function_for_graceful_shutdown_signaling branch from e6d1032 to 8e3510f Compare December 5, 2025 10:04
@jumski jumski force-pushed the 12-04-add_pg_net_pg_cron_and_supabase_vault_extensions_for_worker_management branch from d1a041a to 38fc7d2 Compare December 5, 2025 10:04
@jumski jumski force-pushed the 12-04-add_pg_net_pg_cron_and_supabase_vault_extensions_for_worker_management branch from eed5f12 to a529caf Compare December 5, 2025 22:53
@jumski jumski force-pushed the 12-04-add_mark_worker_stopped_sql_function_for_graceful_shutdown_signaling branch from 404fa0c to 389d7b8 Compare December 5, 2025 22:53
@github-actions
Copy link
Contributor

github-actions bot commented Dec 5, 2025

🔍 Preview Deployment: Website

Deployment successful!

🔗 Preview URL: https://pr-508.pgflow.pages.dev

📝 Details:

  • Branch: 12-04-add_pg_net_pg_cron_and_supabase_vault_extensions_for_worker_management
  • Commit: a4012dd379a1446f2874921ea4e70e1a413f8536
  • View Logs

_Last updated: _

Comment on lines +1 to +4
-- Create extension "pg_net"
CREATE EXTENSION IF NOT EXISTS "pg_net" WITH SCHEMA "public";
-- Create extension "pg_cron"
CREATE EXTENSION IF NOT EXISTS "pg_cron";
Copy link
Contributor

Choose a reason for hiding this comment

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

This new migration file is causing CI to fail because no changeset was created to document it. Run 'changeset add' to create a proper changeset for this migration, or run 'changeset add --empty' if this migration doesn't require a package release.

Spotted by Graphite Agent (based on CI logs)

Fix in Graphite


Is this helpful? React 👍 or 👎 to let us know.

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.

2 participants