Skip to content

Commit

Permalink
add note
Browse files Browse the repository at this point in the history
  • Loading branch information
sakoush committed Dec 4, 2024
1 parent a766d76 commit 34a4c27
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions operator/scheduler/control_plane.go
Original file line number Diff line number Diff line change
Expand Up @@ -52,6 +52,8 @@ func (s *SchedulerClient) SubscribeControlPlaneEvents(ctx context.Context, grpcC
fn := func(ctx context.Context) error {
return s.handleStateOnReconnect(ctx, grpcClient, namespace, event.GetEvent())
}
// in general we could have also handled timeout via a context with timeout
// but we want to handle the timeout in a more controlled way and not depending on the other side
_, err = execWithTimeout(ctx, fn, execTimeOut)
if err != nil {
logger.Error(err, "Failed to handle state on reconnect")
Expand Down

0 comments on commit 34a4c27

Please sign in to comment.