Skip to content

Commit

Permalink
fixed mistake
Browse files Browse the repository at this point in the history
  • Loading branch information
louisponet committed Mar 2, 2023
1 parent f02844f commit 33dd5e8
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 2 deletions.
5 changes: 4 additions & 1 deletion src/RemoteHPC.jl
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,7 @@ const CONFIG_DIR = occursin("cache", first(Base.DEPOT_PATH)) ?
abspath(Base.DEPOT_PATH[2], "config", "RemoteHPC") :
abspath(Base.DEPOT_PATH[1], "config", "RemoteHPC")


config_path(path...) = joinpath(CONFIG_DIR, gethostname(), path...)

function getfirst(f, itr)
Expand All @@ -41,11 +42,14 @@ include("database.jl")
include("types.jl")
include("schedulers.jl")
include("servers.jl")
const LOCAL_SERVER = Ref{Server}()

include("runtime.jl")
include("api.jl")
include("client.jl")
include("io.jl")


@precompile_all_calls begin
s = local_server()
isalive(local_server())
Expand All @@ -69,7 +73,6 @@ export Server, start, restart, local_server, isalive, load, save, submit, abort,
export Calculation, Environment, Exec, HQ, Slurm, Bash
export exec

const LOCAL_SERVER = Ref{Server}()

function __init__()
LOCAL_SERVER[] = local_server()
Expand Down
2 changes: 1 addition & 1 deletion src/servers.jl
Original file line number Diff line number Diff line change
Expand Up @@ -209,7 +209,7 @@ function local_server()
if !exists(s)
error("Local Server wasn't configured. Try running `using Pkg; Pkg.build(\"RemoteHPC\")`")
end
return s
return load(s)
end

function install_julia(s::Server)
Expand Down

2 comments on commit 33dd5e8

@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 updated: JuliaRegistries/General/78816

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.16 -m "<description of version>" 33dd5e8335aaa2c96f4aef2e1e8e11206d3dca85
git push origin v0.3.16

Please sign in to comment.