Skip to content

spawn extend: reload is SSH-only, so on a keyless task instance a new TTL/cost limit is tagged but never applied #1113

Closed

Description

@scttfrdmn

What happens: spawn extend --cost-limit … on a spawn task run instance, which is SSM-only with no SSH key, prints:

⚠️  Warning: Failed to trigger reload: failed to find SSH key: …
   You may need to manually run: ssh <user>@<ip> 'sudo spored reload'

The new limit is written to the tags, but spored keeps enforcing the old one, so a run that needed more headroom is killed at its original cap. The workaround that worked was spawn connect <task> -- 'sudo spored reload', which goes over SSM.

Where (origin/main f0f1f65):

  • cmd/extend.go:434 triggerReload calls findSSHKey(instance.KeyName) and runs ssh only.
  • cmd/extend.go:151-153 turns that failure into a warning and returns nil, so extend exits 0.

Other commands already fall back to SSM for keyless instances:

  • cmd/status.go:466 runStatusOverSSM
  • cmd/ssh_target.go:54, which injects a key over SSM
  • cmd/connect.go:148

Ask:

  1. In triggerReload, fall back to SSM (sudo spored reload via SendCommand, or the same key injection connect uses) when no key is on disk.
  2. If the reload still fails, exit non-zero. This is the spawn extend: TTL reload SSHes as ec2-user, silently no-ops on Ubuntu AMIs #581 failure shape: a lifecycle-critical extend that silently doesn't take effect.

Found while raising cost limits mid-run on an IQ-TREE bootstrap that ran longer than its first estimate (scientific-codes-cookbook measurements/iqtree-real).

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

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