Skip to content

Commit

Permalink
Provide default value on scheduled jobs (#105)
Browse files Browse the repository at this point in the history
  • Loading branch information
tellet-q authored Nov 18, 2024
1 parent bdca63b commit 433ba9b
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 0 deletions.
1 change: 1 addition & 0 deletions tools/check-cluster-health.sh
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@ NOW=$(date -u +"%Y-%m-%dT%H:%M:%SZ")
RUN_SCRIPT="$ROOT/local/check-docker-exit-code.sh"

QC_NAME=${QC_NAME:-"qdrant-chaos-testing"}
QDRANT_PYTHON_CLIENT_VERSION=${QDRANT_PYTHON_CLIENT_VERSION:-"1.12.1"}

if [ "$QC_NAME" == "qdrant-chaos-testing" ]; then
CONTAINER_NAME="bfb-upload"
Expand Down
1 change: 1 addition & 0 deletions tools/local/check-cluster-health.sh
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@ set -x
NOW=$(date -u +"%Y-%m-%dT%H:%M:%SZ")

QC_NAME=${QC_NAME:-"qdrant-chaos-testing"}
QDRANT_PYTHON_CLIENT_VERSION=${QDRANT_PYTHON_CLIENT_VERSION:-"1.12.1"}

if [ "$QC_NAME" == "qdrant-chaos-testing" ]; then
UPLOAD_CONTAINER_NAME="bfb-upload"
Expand Down
1 change: 1 addition & 0 deletions tools/local/run-collect-stats.sh
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@ log_with_timestamp() {
}

QC_NAME=${QC_NAME:-"qdrant-chaos-testing"}
QDRANT_PYTHON_CLIENT_VERSION=${QDRANT_PYTHON_CLIENT_VERSION:-"1.12.1"}
# Redirect stdout (1) and stderr (2) to a log file
exec > >(log_with_timestamp >> "/var/log/${QC_NAME}-collect-stats-cron.log") 2>&1

Expand Down
1 change: 1 addition & 0 deletions tools/run-collect-stats.sh
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@ declare RUN_COLLECT_STATS="$LOCAL/run-collect-stats.sh"
HCLOUD_TOKEN=${HCLOUD_TOKEN:-""}
QDRANT_CLUSTER_URL=${QDRANT_CLUSTER_URL:-""}
QC_NAME=${QC_NAME:-"qdrant-chaos-testing"}
QDRANT_PYTHON_CLIENT_VERSION=${QDRANT_PYTHON_CLIENT_VERSION:-"1.12.1"}
QDRANT_API_KEY=${QDRANT_API_KEY:-""}
POSTGRES_HOST=${POSTGRES_HOST:-""}
POSTGRES_PASSWORD=${POSTGRES_PASSWORD:-""}
Expand Down

0 comments on commit 433ba9b

Please sign in to comment.