Skip to content

Commit

Permalink
Hack: instantiate workerinitenv automatically
Browse files Browse the repository at this point in the history
  • Loading branch information
tkf committed Nov 11, 2019
1 parent de02db2 commit 34f5198
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/workers.jl
Expand Up @@ -23,6 +23,10 @@ workerinitenv = joinpath(@__DIR__, "workerinitenv", "Project.toml")
workerinitscript = joinpath(@__DIR__, "workerinitenv", "init.jl")

function Worker(spec::WorkerSpec)

# TODO: don't
run(`$(spec.julia) --startup-file=no --project=$workerinitenv -e "using Pkg; Pkg.instantiate()"`)

cmd = initcommand(spec)
@debug(
"Launching a worker...",
Expand Down

0 comments on commit 34f5198

Please sign in to comment.