A pastor must possess stability and therefore is to be appointed for an indefinite period of time. The diocesan bishop can appoint him only for a specific period if the conference of bishops has permitted this by a decree.
Source: Code of Canon Law (Vatican.va)