QdrantSearch: Add healthcheck for qdrant

This commit is contained in:
Lain Soykaf 2024-05-27 13:57:42 +04:00
commit 8b76f56050
2 changed files with 23 additions and 0 deletions

View file

@ -139,6 +139,17 @@ defmodule Pleroma.Search.QdrantSearch do
[]
end
end
@impl true
def healthcheck_endpoints do
qdrant_health =
Config.get([Pleroma.Search.QdrantSearch, :qdrant_url])
|> URI.parse()
|> Map.put(:path, "/healthz")
|> URI.to_string()
[qdrant_health]
end
end
defmodule Pleroma.Search.QdrantSearch.OpenAIClient do