Skip to content

Commit

Permalink
PI-2580 Ignore 409 conflict when deploying OpenSearch model
Browse files Browse the repository at this point in the history
  • Loading branch information
marcus-bcl committed Oct 22, 2024
1 parent 4ac4ff5 commit ef07911
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 ef07911

Please sign in to comment.