wait for tasks should wait for all the workers running tasks as well