Skip to content

status/cost/list still anchor TTL and cost figures to EC2 LaunchTime, which resets on every start #1029

Closed

Description

@scttfrdmn

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:

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions