fix: tie node presence to the open session stream #11

Merged
day01 merged %!d() commits from %!s() into %!s() 2026-08-11 19:49:13 +00:00
Owner

Summary

  • Offline while the gRPC session is open was wrong: silence sweep used last_seen, not the stream
  • track open sessions; skip silence sweep while open; mark Offline on stream close
  • Hello/heard still brings Offline back to Active (reconnect without --replace)

Test plan

  • cargo test --test enrolment --test lease
  • deploy control image; idle node stays Active > 2 min
## Summary - Offline while the gRPC session is open was wrong: silence sweep used last_seen, not the stream - track open sessions; skip silence sweep while open; mark Offline on stream close - Hello/heard still brings Offline back to Active (reconnect without --replace) ## Test plan - [x] cargo test --test enrolment --test lease - [ ] deploy control image; idle node stays Active > 2 min
day01 added 1 commit 2026-08-11 19:30:45 +00:00
		Co-authored-by: Cursor <cursoragent@cursor.com>
	
day01 changed title from fix: reactivate offline nodes when they speak again to fix: tie node presence to the open session stream 2026-08-11 19:41:39 +00:00
day01 force-pushed fix/reactivate-offline-nodes-on-hello from 1441f5a99b to 837e66a4b5 2026-08-11 19:41:41 +00:00 Compare
day01 added 1 commit 2026-08-11 19:41:57 +00:00
day01 force-pushed fix/reactivate-offline-nodes-on-hello from 837e66a4b5 to 051f70473d 2026-08-11 19:41:57 +00:00 Compare
day01 merged commit 6a8aea4b2b into %!s() 2026-08-11 19:49:13 +00:00
day01 deleted branch fix/reactivate-offline-nodes-on-hello 2026-08-11 19:49:14 +00:00
Sign in to join this conversation.
No Reviewers
No labels
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: syncode/control#11