mirror of
https://github.com/neondatabase/neon.git
synced 2026-01-14 17:02:56 +00:00
set different timeouts for debug and release
This commit is contained in:
@@ -479,8 +479,12 @@ class NeonEnvBuilder:
|
||||
Configuring pageserver with remote storage is now the default. There will be a warning if pageserver is created without one.
|
||||
"""
|
||||
env = self.init_configs(default_remote_storage_if_missing=default_remote_storage_if_missing)
|
||||
if (timeout_in_seconds is None) and (os.getenv("BUILD_TYPE") == "debug"):
|
||||
timeout_in_seconds = 30
|
||||
if timeout_in_seconds is None:
|
||||
if os.getenv("BUILD_TYPE") == "release":
|
||||
timeout_in_seconds = 15
|
||||
elif os.getenv("BUILD_TYPE") == "debug":
|
||||
timeout_in_seconds = 30
|
||||
|
||||
env.start(timeout_in_seconds=timeout_in_seconds)
|
||||
|
||||
# Prepare the default branch to start the postgres on later.
|
||||
|
||||
Reference in New Issue
Block a user