add: --ready flag for postgrest healthcheck
The `--ready` flag is a wrapper around the admin server `/ready` request. This is done through using an http client library in postgrest. Signed-off-by: Taimoor Zaeem <taimoorzaeem@gmail.com>
This commit is contained in:
committed by
Steve Chavez
parent
ab2cd766c2
commit
a9a1763328
@@ -57,6 +57,7 @@ class PostgrestProcess:
|
||||
admin: object
|
||||
process: object
|
||||
session: object
|
||||
config: object
|
||||
|
||||
def read_stdout(self, nlines=1):
|
||||
"Wait for line(s) on standard output."
|
||||
@@ -143,6 +144,7 @@ def run(
|
||||
process=process,
|
||||
session=PostgrestSession(baseurl),
|
||||
admin=PostgrestSession(adminurl),
|
||||
config=env,
|
||||
)
|
||||
finally:
|
||||
remaining_output = process.stdout.read()
|
||||
|
||||
Reference in New Issue
Block a user