mirror of
https://github.com/agent-substrate/substrate.git
synced 2026-11-10 10:13:50 +08:00
remote.Image was being called without remote.WithContext, so cancellation of the workflow ctx (e.g. when ActorWorkflow.ResumeActor hits its 28s deadline) did not stop the in-flight layer-blob HTTP requests. The goroutines kept running until the TCP connection was torn down, retaining partial-blob buffers in the meantime. On a death loop of ResumeActor retries against a large image, this amplifies atelet RSS proportionally to the loop duration — observed peaking at ~9.4GB on a kind node where baseline atelet was ~2.4GB, enough to OOM atelet on tight production workers. Fixes #230.