Instance pull back

Planning to deploy Prefect in EKS. For example, I am running a pipeline and in-between the instance got pulled back and Kubernetes is trying to spawn a new instance and continue with the process. Will the process resume from where it stopped or will the process start from the beginning.