pass tasks instead of objectSet to wait_for_tasks