What happens for ongoing Liveview Task.async tasks during deployment?

I saw the pattern of using Task.async inside a Liveview handler in this elixirconf talk https://youtu.be/TfZI5-oQSqI?si=KFsY-0Ne-HK99AHj

What happens for these tasks when someone deploys a new version of the code when task is still running? Are they durable? Will there be some sort of connection draining allowing the task to finish?

I’m hosting my app in fly.io but I’m interested how other platforms handle this and best patterns of how to handle these as well.

No and no. If you need that you want to look at libraries like Oban.