Skip to content

Commit

Permalink
Format .jl files
Browse files Browse the repository at this point in the history
  • Loading branch information
singularitti authored and github-actions[bot] committed Oct 17, 2024
1 parent 0c700b5 commit 5652545
Show file tree
Hide file tree
Showing 7 changed files with 12 additions and 15 deletions.
5 changes: 3 additions & 2 deletions EasyJobsBase/src/operations.jl
Original file line number Diff line number Diff line change
Expand Up @@ -48,8 +48,9 @@ function chain_succeeded!(x::AbstractJob, y::Union{ConditionalJob,ArgDependentJo
end
return x
end
chain_succeeded!(x::AbstractJob, y::AbstractJob, z::AbstractJob...) =
foldr(chain_succeeded!, (x, y, z...))
chain_succeeded!(x::AbstractJob, y::AbstractJob, z::AbstractJob...) = foldr(
chain_succeeded!, (x, y, z...)
)
(x::AbstractJob, y::AbstractJob) = chain_succeeded!(x, y)
(y::AbstractJob, x::AbstractJob) = x y

Expand Down
5 changes: 3 additions & 2 deletions EasyJobsBase/src/run.jl
Original file line number Diff line number Diff line change
Expand Up @@ -51,8 +51,9 @@ Run a `Job` with a maximum number of attempts, with each attempt separated by `i
and an initial `delay` in seconds.
"""
run!(job::AbstractJob; kwargs...) = execute!(job, AsyncExecutor(; kwargs...))
run!(job::AbstractJob, worker::Integer; kwargs...) =
execute!(job, ParallelExecutor(worker; kwargs...))
run!(job::AbstractJob, worker::Integer; kwargs...) = execute!(
job, ParallelExecutor(worker; kwargs...)
)

"""
execute!(job::AbstractJob, exec::Executor)
Expand Down
2 changes: 1 addition & 1 deletion EasyJobsBase/test/async.jl
Original file line number Diff line number Diff line change
Expand Up @@ -156,7 +156,7 @@ end
(i, j, k) .→ l
@test !shouldrun(l)
map((i, j, k)) do job
run!(job; wait=true)
return run!(job; wait=true)
end
@test shouldrun(l)
run!(l; wait=true)
Expand Down
2 changes: 1 addition & 1 deletion EasyJobsBase/test/operations.jl
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@
@assert l.skip_incomplete
@test !shouldrun(l)
execs = map((i, j, k)) do job
run!(job)
return run!(job)
end
for exec in execs
wait(exec)
Expand Down
9 changes: 2 additions & 7 deletions docs/make.jl
Original file line number Diff line number Diff line change
Expand Up @@ -16,9 +16,7 @@ makedocs(;
),
pages=[
"Home" => "index.md",
"Manual" => [
"Installation guide" => "installation.md",
],
"Manual" => ["Installation guide" => "installation.md"],
"Public API" => "public.md",
"Developer Docs" => [
"Contributing" => "developers/contributing.md",
Expand All @@ -29,7 +27,4 @@ makedocs(;
],
)

deploydocs(;
repo="github.com/MineralsCloud/EasyJobs.jl",
devbranch="main",
)
deploydocs(; repo="github.com/MineralsCloud/EasyJobs.jl", devbranch="main")
2 changes: 1 addition & 1 deletion test/async.jl
Original file line number Diff line number Diff line change
Expand Up @@ -156,7 +156,7 @@ end
(i, j, k) .→ l
@test !shouldrun(l)
map((i, j, k)) do job
run!(job; wait=true)
return run!(job; wait=true)
end
@test shouldrun(l)
run!(l; wait=true)
Expand Down
2 changes: 1 addition & 1 deletion test/operations.jl
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@
@assert l.skip_incomplete
@test !shouldrun(l)
execs = map((i, j, k)) do job
run!(job)
return run!(job)
end
for exec in execs
wait(exec)
Expand Down

0 comments on commit 5652545

Please sign in to comment.