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
status/cost/list still anchor TTL and cost figures to EC2 LaunchTime, which resets on every start #1029
Found while fixing #992 (PR stacked on #990). I read the code and did not reproduce this live.
#992 moves spawn extend onto the original launch (spawn:launch-time) and cumulative compute (spawn:compute-seconds). Several display paths still use aws.InstanceInfo.LaunchTime. That is EC2's LaunchTime, which resets on every start of a stopped instance:
spawn cost <instance-id> (cmd/cost.go): uses singleInstanceCostReport(inst, time.Since(inst.LaunchTime)). That is the runtime since the latest start only, and for a stopped instance it also counts the stopped time as compute.
spawn list Age (cmd/list.go): time.Since(inst.LaunchTime). This is arguably fine as "up since", but it is labelled as age.
Suggested fix: use the original launch from spawn:launch-time for deadline and wall-clock figures, and spawn:compute-seconds for compute figures. That is the same anchoring as #992's originalLaunchTime/computeSoFar in cmd/extend_cost_limit.go, and #947's stopped-instance status already reads the tag this way. Coordinate with #947, which rewrites much of spawn status.
Activity
Anchor status/cost/list age, TTL and cost to the first launch (#1029)
Anchor status/cost/list age, TTL and cost to the first launch (#1029) (…