Skip to content

fix: cleanup uses fresh context after volume create failure#541

Open
Mesut Oezdil (mesutoezdil) wants to merge 1 commit into
agent-substrate:mainfrom
mesutoezdil:fix/volume-cleanup-context
Open

fix: cleanup uses fresh context after volume create failure#541
Mesut Oezdil (mesutoezdil) wants to merge 1 commit into
agent-substrate:mainfrom
mesutoezdil:fix/volume-cleanup-context

Conversation

@mesutoezdil

@mesutoezdil Mesut Oezdil (mesutoezdil) commented Jul 25, 2026

Copy link
Copy Markdown
Contributor

If CreateVolume fails because ctx is done (deadline or cancel), the
best-effort cleanup call reused the same ctx and failed for the same
reason right away, leaking the already-created external volume.

Cleanup now gets its own 30s timeout, detached from the original ctx.

if the failure was a ctx deadline or cancel, cleanup used the same
ctx and failed for the same reason, leaking the volume. give it a
fresh 30s timeout instead.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant