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
--spot launches one-time Spot requests, which EC2 cannot stop — idle-stop, on-idle/on-complete stop, hibernate and 'spawn stop' can never work for --spot #922
$ spawn stop demo --yes
Saving remaining TTL: 22m (deadline: 2026-10-15 17:59 UTC)
failed to stop instance: ... api error UnsupportedOperation: You can't stop the Spot Instance
'i-028c23f816d2eb68e' because it is associated with a one-time Spot Instance request. You can
only stop Spot Instances associated with persistent Spot Instance requests.
So for every --spot launch, all stop-based lifecycle actions are impossible: --idle-timeout (default action stop), --on-idle stop|hibernate, --on-complete stop|hibernate, spawn stop, spawn hibernate. spawn status still promises the opposite for this instance:
Idle timeout: 15m (stops the instance when idle; never terminates)
Billable resources:
instance i-028c23f816d2eb68e ~$0.9738/hr m8a.4xlarge (spot)
(Separately, idle never triggered here because of #919. Once #919 is fixed, the idle-stop call would hit this error.)
Suggested (any of):
When a stop-based action is requested with --spot, request a persistent Spot request with InstanceInterruptionBehavior=stop (and cancel the request when the instance is terminated, or it relaunches).
Or validate at launch: refuse or warn on --spot + stop/hibernate actions, and treat idle as terminate for one-time Spot. Say so in the launch summary and in status ("Idle timeout: 15m — terminates (one-time Spot can't stop)").
Make spawn stop explain this up front instead of printing "Saving remaining TTL" and then failing.
Context: a talk demo planned "launch → idle → stops → spawn connect restarts it" with --spot (as on the slide). That can't work as specified.
Activity
Annotate the fake EC2 servers' XML writes for Semgrep, as other test …
Launch stoppable --spot as persistent Spot and cancel the request on …
Annotate the fake EC2 servers' XML writes for Semgrep, as other test …
Print the spot-cancel warning to stderr directly, as #895 does for pk…
Annotate the remaining interpolated fake-EC2 write for Semgrep (#922)
Name both Semgrep rules on the fake-EC2 XML write (#922)
Launch stoppable --spot as persistent Spot; cancel the request on eve…
Have spored retire a Spot replacement it finds itself running on (#995)
Have spored retire a Spot replacement it finds itself running on (#995)
Have spored retire a Spot replacement it finds itself running on (#995)…