Skip to content

Commit

Permalink
better wait, log only necessary things
Browse files Browse the repository at this point in the history
  • Loading branch information
m-fila committed Jul 11, 2024
1 parent 22af9ed commit ca020c2
Showing 1 changed file with 4 additions and 10 deletions.
14 changes: 4 additions & 10 deletions test/scheduling.jl
Original file line number Diff line number Diff line change
Expand Up @@ -41,18 +41,12 @@ end
algorithms_count = ilength(MetaGraphs.filter_vertices(graph, :type, "Algorithm"))
set_indexing_prop!(graph, :node_id)

Dagger.enable_logging!(timeline=true,
tasknames=true,
taskdeps=true,
taskargs=true,
taskargmoves=true,
)
Dagger.enable_logging!(tasknames=true, taskdeps=true)
_ = Dagger.fetch_logs!() # flush logs

FrameworkDemo.schedule_graph(graph)
for v in vertices(graph)
wait(get_prop(graph, v, :res_data))
end
tasks = FrameworkDemo.schedule_graph(graph)
wait.(tasks)

logs = Dagger.fetch_logs!()
@test !isnothing(logs)

Expand Down

0 comments on commit ca020c2

Please sign in to comment.