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
@@ -95,3 +95,9 @@ def hpctixfile():
|
||||
# astronomically low.
|
||||
test = uuid.uuid4().hex[:12]
|
||||
return tixfile.with_suffix(f".{test}.tix")
|
||||
|
||||
|
||||
def get_admin_host_and_port_from_config(config):
|
||||
admin_host = config.get("PGRST_ADMIN_SERVER_HOST", config["PGRST_SERVER_HOST"])
|
||||
admin_port = config["PGRST_ADMIN_SERVER_PORT"]
|
||||
return (admin_host, admin_port)
|
||||
|
||||
Reference in New Issue
Block a user