Do agents die when head node dies?

If ray’s head node process dies (ungracefully) do agent processes die eventually as well or will they spin forever trying to connect to head node? Is there a timeout? if yes, how long?

Ray agent process fate share with the raylet. that said, the agent will be killed if the raylet is dead, usually under a few seconds.