CORE-5955: keep the original app ID, which will be used to update the jobs table later