The above code creates one million tasks to be executed. The stage detail web ui page takes forever to load (if it ever completes).
There are again a few different alternatives:
0. Limit the number of tasks we show.
2. By default only show the aggregate metrics and failed tasks, and hide the successful ones.