Skip to content
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 9 additions & 3 deletions Project.toml
Original file line number Diff line number Diff line change
Expand Up @@ -6,11 +6,17 @@ version = "1.1.0"
[deps]
Distributed = "8ba89e20-285c-5b6f-9357-94700520ee1b"

[weakdeps]
DistributedNext = "fab6aee4-877b-4bac-a744-3eca44acbb6f"

[compat]
Distributed = "< 0.0.1, 1"
DistributedNext = "1"
julia = "1.0"

[extras]
DistributedNext = "fab6aee4-877b-4bac-a744-3eca44acbb6f"
Test = "8dfed614-e22c-5e08-85e1-65c5234f0b40"

[targets]
test = ["Test"]

[compat]
julia = "1.0"
5 changes: 5 additions & 0 deletions ext/SlurmClusterManagerDistributedNextExt.jl
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
import DistributedNext

function DistributedNext.launch(manager::SlurmManager, params::Dict, instances_arr::Array, c::Condition)
return launch_slurm(manager, params, instances_arr::Array, c::Condition)
end
4 changes: 4 additions & 0 deletions src/slurmmanager.jl
Original file line number Diff line number Diff line change
Expand Up @@ -172,6 +172,10 @@ function warn_if_unexpected_params(params::Dict)
end

function Distributed.launch(manager::SlurmManager, params::Dict, instances_arr::Array, c::Condition)
return launch_slurm(manager, params, instances_arr::Array, c::Condition)
end

function launch_slurm(manager::SlurmManager, params::Dict, instances_arr::Array, c::Condition)
try
warn_if_unexpected_params(params)

Expand Down