only run tasks on the primary