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