set loop_limit if instance_schedule is set