The penalties provided for in article 124 shall be imposed upon any public officer or employee who delays for the period of time specified therein the performance of any judicial or executive order for the release of a prisoner or detention prisoner, or unduly delays the service of the notice of such order to said prisoner or the proceedings upon any petition for the liberation of such person.