-
Notifications
You must be signed in to change notification settings - Fork 15
feat: add track_worker_function for edge function monitoring #505
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_worker_functions_table_and_stopped_at_column_to_workers
Are you sure you want to change the base?
Conversation
|
|
View your CI Pipeline Execution ↗ for commit aedf84f
☁️ Nx Cloud last updated this comment at |
179a131 to
a6b7275
Compare
b0378fa to
03ec709
Compare
a6b7275 to
a26dc00
Compare
a26dc00 to
bfe384c
Compare
c6ddeaf to
be78079
Compare
bfe384c to
89d0e0b
Compare
be78079 to
e802d13
Compare
89d0e0b to
5e801eb
Compare
5e801eb to
aedf84f
Compare
e802d13 to
4e01611
Compare
🔍 Preview Deployment: Website✅ Deployment successful! 🔗 Preview URL: https://pr-505.pgflow.pages.dev 📝 Details:
_Last updated: _ |

Add track_worker_function for edge function monitoring
This PR introduces a new SQL function
pgflow.track_worker_function()that allows edge functions to register themselves for monitoring by theensure_workers()cron job.The function:
pgflow.worker_functionstableupdated_attimestamp on each callThis enables worker functions to "check in" periodically, allowing the system to detect and restart any workers that have stopped responding.
Added comprehensive tests to verify:
Also updated TypeScript database types to include the new function.