-
Notifications
You must be signed in to change notification settings - Fork 15
feat: add ensure_workers function to automatically restart dead workers #510
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: 12-04-add_pg_net_pg_cron_and_supabase_vault_extensions_for_worker_management
Are you sure you want to change the base?
Conversation
|
|
View your CI Pipeline Execution ↗ for commit c298fab
☁️ Nx Cloud last updated this comment at |
7bc511b to
c298fab
Compare
eed5f12 to
a529caf
Compare
🔍 Preview Deployment: Website✅ Deployment successful! 🔗 Preview URL: https://pr-510.pgflow.pages.dev 📝 Details:
_Last updated: _ |

Add
ensure_workers()function to manage worker lifecycleThis PR introduces a new PostgreSQL function
pgflow.ensure_workers()that manages the lifecycle of worker functions by:last_invoked_attimestamp for invoked functionsThe function implements different behavior based on environment:
Key features:
heartbeat_timeout_secondssettingThis function will be called by a cron job to ensure worker functions stay running, providing automatic recovery from worker failures.