Skip to content

Commit

Permalink
Fix doc syntax in is_running.
Browse files Browse the repository at this point in the history
  • Loading branch information
jaraco committed Apr 1, 2024
1 parent 7031db6 commit a727504
Showing 1 changed file with 8 additions and 7 deletions.
15 changes: 8 additions & 7 deletions jaraco/postgres/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -433,13 +433,14 @@ def is_running(self, tries=10):
Return True if this server is currently running and reachable.
The postgres tools have critical windows during which they give
misbehave
or give the wrong answer. If postgres was just launched:
- it might not yet appear to be running, or
- pg_ctl might think that it's running, but psql might not yet
be able to connect to it, or
- it might be about to abort because of a configuration problem,
- or all three! It might be starting up, but about to abort.
misbehave or give the wrong answer. If postgres was just launched:
- it might not yet appear to be running, or
- pg_ctl might think that it's running, but psql might not yet
be able to connect to it, or
- it might be about to abort because of a configuration problem,
- or all three! It might be starting up, but about to abort.
Sadly, it's not easy to make a declaration about state if the server
just started
or stopped. To increase confidence, makes repeated checks,
Expand Down

0 comments on commit a727504

Please sign in to comment.