Given are job J1 in frozen (and thus Retry=0) and J2 the successor job with Retry>0.
If one switches in the JobQueueInfo Next in the success branch, J2 gets a Retry=0.
The successor job has nothing to do with the frozen job, its Retry attempts should remain, especially if it is a typical CheckJob.
QBM_PJobUnfreeze takes the value @Retries from the current (frozen) job and updates the successor job using this variable. Job by means of this variable. If @ReactivationOf is in ('SUCCESS', 'ERROR') nothing should be changed in the Retry.