Skip to content

Commit

Permalink
update so check_connections doesnt happen for local servers
Browse files Browse the repository at this point in the history
  • Loading branch information
louisponet committed Jun 29, 2023
1 parent 8f66e2d commit cd878a3
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion Project.toml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
name = "RemoteHPC"
uuid = "c4f2a1c4-7655-40d8-82ee-c6ae0a8b7409"
authors = ["louisponet <[email protected]>"]
version = "0.3.30"
version = "0.3.31"

[deps]
BinaryTraits = "190e46ec-f771-4705-b939-984896f7be0e"
Expand Down
2 changes: 1 addition & 1 deletion src/client.jl
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ function start(s::Server; verbosity=0)

next!(spinner)

alive = isalive(s) || get(JSON3.read(check_connections(names=[s.name]).body), Symbol(s.name), false)
alive = isalive(s) || (!islocal(s) && get(JSON3.read(check_connections(names=[s.name]).body), Symbol(s.name), false))
if alive
push!(spinner, "Server is already up and running.")
finish!(spinner)
Expand Down

2 comments on commit cd878a3

@louisponet
Copy link
Owner Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@JuliaRegistrator
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Registration pull request created: JuliaRegistries/General/86492

After the above pull request is merged, it is recommended that a tag is created on this repository for the registered package version.

This will be done automatically if the Julia TagBot GitHub Action is installed, or can be done manually through the github interface, or via:

git tag -a v0.3.31 -m "<description of version>" cd878a34ab63b788c06425a3cada588902939662
git push origin v0.3.31

Please sign in to comment.