Skip to content
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

Reconnect PgBoss Job Handlers when database come alive from a failure #510

Open
kasvith opened this issue Oct 7, 2024 · 1 comment
Open

Comments

@kasvith
Copy link

kasvith commented Oct 7, 2024

Hi,

Currently in one of our production apps, if DB is unavailable on app startup pgboss fails to register job handlers.
When the DB comes online pgboss never attempts to reconnect and register job handlers again, so these job handlers become stalled

is there a way we can solve this? an event to know when db reconnects or a way to find which job handlers were successfully registered

@kasvith kasvith changed the title Reconnect PgBoss when database come alive Reconnect PgBoss Job Handlers when database come alive from a failure Oct 7, 2024
@timgit
Copy link
Owner

timgit commented Oct 12, 2024

If the db is unavailable, start() would also fail. Do you have a way you can poll your database to determine when it's back up?

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

No branches or pull requests

2 participants