A main road in a York suburb has been issued an emergency closure notice for maintenance.