As a user, I know if all of my tasks in a TaskGroup have been dispatched
Currently, there's no way to know if a TaskGroup is done because tasks can be assigned to a TaskGroup at any time.
Add a new field (
all_tasks_dispatched?) that when set to true, no more tasks can be added to a TaskGroup. Users should use this field in addition to checking for running/waiting tasks to see if a TaskGroup is complete.
Also, go through our code and update any instance where TaskGroup is being created.