Skip to content

Commit

Permalink
PI-2580 Ignore 409 conflict when deploying OpenSearch model (#4333)
Browse files Browse the repository at this point in the history
  • Loading branch information
marcus-bcl authored Oct 22, 2024
1 parent 7aead28 commit 93cf7f3
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -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
Original file line number Diff line number Diff line change
Expand Up @@ -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

0 comments on commit 93cf7f3

Please sign in to comment.