migrate spawn recurring taks intervals to codec