Skip to content
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 4 additions & 2 deletions src/RemoteContainers.Aspire/Docker/DockerApiClient.cs
Original file line number Diff line number Diff line change
Expand Up @@ -107,8 +107,10 @@ public DockerApiClient(ILogger<DockerApiClient> logger, HttpClient httpClient, A
_logger.LogError(ex, "Docker API request failed for {ResourceName}; retrying…", resourceName);
}

lastSeenId = null;
isFirstPoll = false;
// Do not reset lastSeenId or isFirstPoll — a transient error gives no information about the
// container state, so the existing stabilization state must be preserved. Resetting would
// set lastSeenId to null, causing the next successful find to be accepted immediately via the
// "appeared after an empty poll" path, which defeats the two-poll confirmation.
}

await Task.Delay(pollInterval, cancellationToken);
Expand Down