For a Px policy to the last thing executed on a task:
This px policy would have to be a type of "submitted task" executed on "task completion".
where the task is configured with "Account synch every event", and there can be no identity policies triggered as part of this task if the tasks user synch is set to "on task completion"