File tree Expand file tree Collapse file tree 1 file changed +9
-0
lines changed Expand file tree Collapse file tree 1 file changed +9
-0
lines changed Original file line number Diff line number Diff line change @@ -270,6 +270,12 @@ function init_proc(state, p)
270
270
state. worker_chans[p. pid] = (inp_chan, out_chan)
271
271
end
272
272
end
273
+ function _cleanup_proc (uid)
274
+ empty! (CHUNK_CACHE)
275
+ end
276
+ function cleanup_proc (state, p)
277
+ remote_do (_cleanup_proc, p. pid, state. uid)
278
+ end
273
279
274
280
" Process-local count of actively-executing Dagger tasks per processor type."
275
281
const ACTIVE_TASKS = Dict {UInt64,Dict{Type,Ref{Float64}}} ()
@@ -409,6 +415,9 @@ function compute_dag(ctx, d::Thunk; options=SchedulerOptions())
409
415
410
416
safepoint (state)
411
417
end
418
+ @sync for p in procs_to_use (ctx)
419
+ @async cleanup_proc (state, p)
420
+ end
412
421
value = state. cache[d] # TODO : move(OSProc(), state.cache[d])
413
422
if d in state. errored
414
423
throw (value)
You can’t perform that action at this time.
0 commit comments