Skip to content

Commit 724d992

Browse files
authored
precompile: Slightly lengthen pre-wait timeout
This should avoid hanging `wait` calls and having to throw exceptions to running tasks during precompile.
1 parent 50fd192 commit 724d992

File tree

1 file changed

+2
-4
lines changed

1 file changed

+2
-4
lines changed

src/precompile.jl

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@
2626

2727
# Wait for halt
2828
while Sch.EAGER_INIT[]
29-
sleep(0.1)
29+
sleep(0.5)
3030
end
3131

3232
# Final clean-up
@@ -38,11 +38,9 @@
3838
return
3939
end
4040
for (name, t) in tracked
41-
@warn "Waiting on $name"
4241
if t.state == :runnable
42+
@warn "Waiting on $name"
4343
Base.throwto(t, InterruptException())
44-
else
45-
wait(t)
4644
end
4745
end
4846
end

0 commit comments

Comments
 (0)