From 93cf7f39bda587ad12f8125110b9f899c47a4a14 Mon Sep 17 00:00:00 2001 From: Marcus Aspin Date: Tue, 22 Oct 2024 11:11:34 +0100 Subject: [PATCH] PI-2580 Ignore 409 conflict when deploying OpenSearch model (#4333) --- .../container/scripts/deploy-semantic-model.sh | 3 ++- .../container/scripts/startup.sh | 1 + 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/projects/person-search-index-from-delius/container/scripts/deploy-semantic-model.sh b/projects/person-search-index-from-delius/container/scripts/deploy-semantic-model.sh index 41e79b7a6f..4678ef19f2 100755 --- a/projects/person-search-index-from-delius/container/scripts/deploy-semantic-model.sh +++ b/projects/person-search-index-from-delius/container/scripts/deploy-semantic-model.sh @@ -47,4 +47,5 @@ else fi ## Deploy model -curl_json -XPOST "${SEARCH_INDEX_HOST}/_plugins/_ml/models/${model_id}/_deploy" +echo "Deploying model with id=${model_id}..." +curl_json -XPOST "${SEARCH_INDEX_HOST}/_plugins/_ml/models/${model_id}/_deploy" || echo 'Warning: Failed to deploy model' >&2 diff --git a/projects/person-search-index-from-delius/container/scripts/startup.sh b/projects/person-search-index-from-delius/container/scripts/startup.sh index f544164aa3..d327081c6b 100755 --- a/projects/person-search-index-from-delius/container/scripts/startup.sh +++ b/projects/person-search-index-from-delius/container/scripts/startup.sh @@ -49,4 +49,5 @@ if grep -q 'contact' <<<"$PIPELINES_ENABLED"; then /scripts/setup-index.sh -i "contact-semantic-search" -p /pipelines/contact/index/ingest-pipeline.json -s /pipelines/contact/index/search-pipeline.json -t /pipelines/contact/index/index-template-semantic.json fi +echo Starting Logstash... /usr/local/bin/docker-entrypoint