daytonaio / daytona

The Open Source Dev Environment Manager.
https://daytona.io
Apache License 2.0
5.55k stars 215 forks source link

fix: agent tailscale server reestablish connection #575

Closed Tpuljak closed 2 weeks ago

Tpuljak commented 2 weeks ago

Agent Tailscale Server Reestablish Connection

Description

This PR fixes the agent tailscale server connection reestablishing. The server now performs a health check every 5 seconds and, if it fails, attempts to reconnect. The reconnection process involves getting a new network key and initializing a new tailscale connection.

Related Issue(s)

Closes #522

Notes

To test this PR:

  1. Create a workspace
  2. Stop the Daytona Server for more than 5 minutes
  3. Start the Daytona Server
  4. Attempt to connect to the workspace project with daytona ssh