MagicStack / MagicStack/asyncpg

notified on shutdown

Open
#403 1 comment 0 reactions 0 assignees View on GitHub
Dominant language
Python
Stars
8.1k
Forks
468
PR merge metrics
No merged PRs in 30d

Description

This is not a bug report. I have a question.

How can my app get notified when postgres goes offline or crashes ?
Is there any such functionality? From what I can understand so far, I can have some callbacks when connections are opened and acquired (init and setup) but I cannot know when postgres goes offline.

Thank you

Contributor guide

No contributing guide indexed for this repository

Research direction

Start by reviewing asyncpg's connection lifecycle callbacks and PostgreSQL offline or crash behavior described in the issue. A useful outcome would be a decided notification approach or a clearly documented limitation, but no implementation entry point or test is named.

Written by the indexing model from the issue text.

Assessment

Tech stack
postgresql, python
Domain
databases
Issue type
Feature
Difficulty
5/5
Estimated time
Over a week
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
15/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.