summaryrefslogtreecommitdiff
path: root/lib/hyperstack/wireguard.rb
diff options
context:
space:
mode:
authorPaul Buetow <paul@buetow.org>2026-05-24 12:26:07 +0300
committerPaul Buetow <paul@buetow.org>2026-05-24 12:26:07 +0300
commitcbc74944490a18c2cccbc8a108b3665b2cf3650b (patch)
treef2e899face9455a2b995bbb7c6bad091cb782b07 /lib/hyperstack/wireguard.rb
parent145d870a1fa83b433b0ad02ae3818a338d579efc (diff)
fix(cli): avoid false VM2 abort when VM1 fails after WG step succeeded
In run_create_both, VM1's thread rescue unconditionally set vm1_wg_state[:error], even when the WireGuard step had already signaled success (vm1_wg_state[:done] = true). If VM2 was waiting on the condition variable at that moment, it would raise 'VM1 WireGuard setup failed' and abort needlessly. Now the rescue only sets :error when :done is still false, so a downstream VM1 failure (e.g. vLLM install) no longer leaks to VM2. Resolves agent task ic.
Diffstat (limited to 'lib/hyperstack/wireguard.rb')
0 files changed, 0 insertions, 0 deletions