set task affinities