iterating over list of tasks with same cgroup