You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
spored repeats a failed idle stop every minute: pre-stop hook, DNS teardown and an 'idle_stopped' notification each time #948
Found while fixing #922. Verified by reading pkg/agent/agent.go; not reproduced live.
When the idle timeout is reached, checkAndAct (agent.go, the "4. Check idle" block) calls a.stop() / a.hibernate() and returns. stop() runs the pre-stop hook, runs Cleanup (DNS deregistration, compute flush), warns users, sleeps 5s, and then calls provider.Stop. If that call fails, it only logs Failed to stop instance.
Nothing records that the stop failed. On the next tick the instance is still idle and past the timeout, so it all runs again: once a minute, until TTL.
Each repeat does three things:
sends another idle_stopped notification, although nothing stopped;
runs the pre-stop hook again, which may not be idempotent (e.g. an aws s3 sync);
deregisters DNS again, so a running instance loses its name.
Activity
Back off a failed idle stop, announce only success, and restore DNS o…
Back off a failed idle stop, announce only success, and restore DNS o…
Back off a failed idle stop, announce only success, and restore DNS o…
Announce an on-complete stop once and back off a failed one, sharing …
Give plugins back their status and health loop when a stop or hiberna…
Back off a failed idle stop, announce only success, and restore DNS o…
Announce an on-complete stop once and back off a failed one, sharing …
Give plugins back their status and health loop when a stop or hiberna…
Back off a failed idle stop, announce only success, and restore DNS o…
Back off a failed idle stop, announce only success, and restore DNS o…
Announce an on-complete stop once and back off a failed one, sharing …
Announce an on-complete stop once and back off a failed one, sharing …
Give plugins back their status and health loop when a stop or hiberna…
Give plugins back their status and health loop when a stop or hiberna…