Chef client policy revision attribute

When a new version of a policy is applied to a node via Chef Client the revision id of the policy is updated in the policy_revision node attribute.
My question is: at what point of the client run does this attribute get updated? At the start of the run or only if the client run completes without any errors?
Thank you!