Replace job completion funciton.