Skip to content

Commit

Permalink
Removing healthcheck function due to lack of support
Browse files Browse the repository at this point in the history
  • Loading branch information
pebeto committed May 17, 2024
1 parent 49535c8 commit 275316a
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 17 deletions.
1 change: 0 additions & 1 deletion docs/src/reference.md
Original file line number Diff line number Diff line change
Expand Up @@ -56,5 +56,4 @@ uri
generatefilterfromentity_type
generatefilterfromparams
generatefilterfromattributes
healthcheck
```
16 changes: 0 additions & 16 deletions src/utils.jl
Original file line number Diff line number Diff line change
@@ -1,19 +1,3 @@
"""
healthcheck(mlf::MLFlow)
Checks if MLFlow server is up and running. Returns `true` if it is, `false`
otherwise.
"""
function healthcheck(mlf)
uri = "$(mlf.baseuri)/health"
try
response = HTTP.get(uri)
return String(response.body) == "OK"
catch e
return false
end
end

"""
uri(mlf::MLFlow, endpoint="", query=missing)
Expand Down

0 comments on commit 275316a

Please sign in to comment.