Skip to content

Commit

Permalink
Clean-up scheduler plugin accessor
Browse files Browse the repository at this point in the history
  • Loading branch information
jpsamaroo committed Oct 29, 2020
1 parent 2aa4cc6 commit edcb640
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions src/compute.jl
Expand Up @@ -25,11 +25,10 @@ runs the scheduler with the specified options. Returns a Chunk which references
the result.
"""
function compute(ctx::Context, d::Thunk; options=nothing)
if !(:scheduler in keys(PLUGINS))
PLUGINS[:scheduler] = get_type(PLUGIN_CONFIGS[:scheduler])
scheduler = get!(PLUGINS, :scheduler) do
get_type(PLUGIN_CONFIGS[:scheduler])
end
scheduler = PLUGINS[:scheduler]
res = (scheduler).compute_dag(ctx, d; options=options)
res = scheduler.compute_dag(ctx, d; options=options)
if ctx.log_file !== nothing
if ctx.log_sink !== LocalEventLog
logs = get_logs!(ctx.log_sink)
Expand Down

0 comments on commit edcb640

Please sign in to comment.