Currently there is deployment in ECS that goes on and kills the existing tasks that are running in the backend worker machine. And to resolve the issue I set acks_late=Tru
acks_late=Tru