get_post() is not returning correct value

I have a post and i need to update its post_parent. So i have used below code to update the post_parent value. Old post_parent is 844 and using query i have updated the value to 370 using below:

In next line , i need to get the post and then perform some functions. I am doing it like this

But instead of returning updated values, i am getting the old post_parent value in return. Like below

I have checked in Database and in database, post_parent value is updated one.

Complete Code in all together:

Please tell me how can i fix it.