Renames server timeout to max attempts
Updates the `serverTimeoutSeconds` parameter to `serverMaxAttempts` to better reflect its functionality, which is the number of attempts the system will make to connect to the server.
This commit is contained in:
parent
455bc44195
commit
50e4dc7313
1 changed files with 5 additions and 5 deletions
|
|
@ -45,7 +45,7 @@ parameters:
|
|||
- name: readinessEndpoint
|
||||
type: string
|
||||
default: '/healthcheck'
|
||||
- name: serverTimeoutSeconds
|
||||
- name: serverMaxAttempts
|
||||
type: number
|
||||
default: 60
|
||||
|
||||
|
|
@ -205,7 +205,7 @@ jobs:
|
|||
--env TOTAL_SHARDS="$TOTAL_SHARDS" \
|
||||
--env FILTER="$FILTER" \
|
||||
--env APPLICATION_TYPE="$APPLICATION_TYPE" \
|
||||
--env SERVER_TIMEOUT="${{ parameters.serverTimeoutSeconds }}" \
|
||||
--env SERVER_MAX_ATTEMPTS="${{ parameters.serverMaxAttempts }}" \
|
||||
--env ASPNETCORE_URLS="https://localhost:$port" \
|
||||
--env ENV_FILE="$ENV_FILE" \
|
||||
--env-file "${{ parameters.envFileName }}" \
|
||||
|
|
@ -215,12 +215,12 @@ jobs:
|
|||
echo "Application Type: $APPLICATION_TYPE"
|
||||
echo "Target URL: $TARGET_URL"
|
||||
echo "Readiness Check URL: $READINESS_URL"
|
||||
echo "Server Timeout: $SERVER_TIMEOUT seconds"
|
||||
|
||||
echo "Server Max Attempts: $SERVER_MAX_ATTEMPTS seconds"
|
||||
|
||||
# Function to wait for server readiness
|
||||
wait_for_server() {
|
||||
local url=$1
|
||||
local max_attempts=$SERVER_TIMEOUT
|
||||
local max_attempts=$SERVER_MAX_ATTEMPTS
|
||||
local attempt=1
|
||||
|
||||
echo "Waiting for server at: $url"
|
||||
|
|
|
|||
Loading…
Reference in a new issue