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: e626eae

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

Copy link
Contributor Author

jumski commented Dec 5, 2025

@nx-cloud
Copy link

nx-cloud bot commented Dec 5, 2025

View your CI Pipeline Execution ↗ for commit e626eae

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

☁️ Nx Cloud last updated this comment at 2025-12-08 08:59:34 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 38fc7d2 to eed5f12 Compare December 5, 2025 13:05
@jumski jumski force-pushed the 12-04-add_mark_worker_stopped_sql_function_for_graceful_shutdown_signaling branch from 8e3510f to 404fa0c Compare December 5, 2025 13:05
@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
@jumski jumski force-pushed the 12-04-add_pg_net_pg_cron_and_supabase_vault_extensions_for_worker_management branch from a529caf to e37efc4 Compare December 7, 2025 16:45
@jumski jumski force-pushed the 12-04-add_mark_worker_stopped_sql_function_for_graceful_shutdown_signaling branch from 389d7b8 to 0de2c9a Compare December 7, 2025 16:45
@jumski jumski force-pushed the 12-04-add_pg_net_pg_cron_and_supabase_vault_extensions_for_worker_management branch from e37efc4 to 85af1a3 Compare December 8, 2025 05:23
@jumski jumski force-pushed the 12-04-add_mark_worker_stopped_sql_function_for_graceful_shutdown_signaling branch from 0de2c9a to 7f0069f Compare December 8, 2025 05:23
@github-actions
Copy link
Contributor

github-actions bot commented Dec 8, 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: 1c5d97c5f3ac3e5a2cd2d91d3508a766e5e6665f
  • View Logs

_Last updated: _

Copy link
Contributor Author

jumski commented Dec 8, 2025

Merge activity

  • Dec 8, 8:07 AM UTC: A user started a stack merge that includes this pull request via Graphite.
  • Dec 8, 8:51 AM UTC: Graphite rebased this pull request as part of a merge.
  • Dec 8, 8:59 AM UTC: @jumski merged this pull request with Graphite.

@jumski jumski changed the base branch from 12-04-add_mark_worker_stopped_sql_function_for_graceful_shutdown_signaling to graphite-base/508 December 8, 2025 08:42
@jumski jumski changed the base branch from graphite-base/508 to main December 8, 2025 08:50
@jumski jumski force-pushed the 12-04-add_pg_net_pg_cron_and_supabase_vault_extensions_for_worker_management branch from 85af1a3 to e626eae Compare December 8, 2025 08:51
@jumski jumski merged commit b727299 into main Dec 8, 2025
9 of 12 checks passed
@github-actions
Copy link
Contributor

github-actions bot commented Dec 8, 2025

🚀 Production Deployment: Website

Successfully deployed to production!

🔗 Production URL: https://pgflow.dev

📝 Details:

  • Commit: b727299867a6378cabc409f271044e9136dd5536
  • View Logs

Deployed at: 2025-12-08T09:59:24+01:00

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