HF RL Explorer

The Beszel agent fails to connect to the hub on system startup due to DNS resolution not being ready yet…

The Beszel agent fails to connect to the hub on system startup due to DNS resolution not being ready yet…: a task in LegoFlow-SWE (Harbor dataset). We need a way to make the agent exit immediately on the first connection failure, so that init systems like systemd or Docker's restart policy can…

The task

We need a way to make the agent exit immediately on the first connection failure, so that init systems like systemd or Docker's restart policy can restart it, giving DNS time to come online. This should be controllable via an environment variable `EXIT_ON_INITIAL_FAILURE`.

Part of Lego-X/LegoFlow-SWE.