@@ -20,10 +20,7 @@ runs the scheduler with the specified options. Returns a Chunk which references
2020the result.
2121"""
2222function compute (ctx:: Context , d:: Thunk ; options= nothing )
23- scheduler = get! (PLUGINS, :scheduler ) do
24- get_type (PLUGIN_CONFIGS[:scheduler ])
25- end
26- res = scheduler. compute_dag (ctx, d; options= options)
23+ result = Sch. compute_dag (ctx, d; options= options)
2724 if ctx. log_file != = nothing
2825 if ctx. log_sink isa TimespanLogging. LocalEventLog
2926 logs = TimespanLogging. get_logs! (ctx. log_sink)
@@ -34,12 +31,12 @@ function compute(ctx::Context, d::Thunk; options=nothing)
3431 @warn " Context log_sink not set to LocalEventLog, skipping"
3532 end
3633 end
37- res
34+ result
3835end
3936
4037function debug_compute (ctx:: Context , args... ; profile= false , options= nothing )
41- @time res = compute (ctx, args... ; options= options)
42- get_logs! (ctx. log_sink), res
38+ @time result = compute (ctx, args... ; options= options)
39+ get_logs! (ctx. log_sink), result
4340end
4441
4542function debug_compute (arg; profile= false , options= nothing )
@@ -53,11 +50,7 @@ Base.@deprecate gather(x) collect(x)
5350
5451cleanup () = cleanup (Context (global_context ()))
5552function cleanup (ctx:: Context )
56- if :scheduler in keys (PLUGINS)
57- scheduler = PLUGINS[:scheduler ]
58- (scheduler). cleanup (ctx)
59- delete! (PLUGINS, :scheduler )
60- end
53+ Sch. cleanup (ctx)
6154 nothing
6255end
6356
0 commit comments