Skip to content

Suspend/resume creates redundant ActorTemplates and golden snapshots #378

Closed

Description

@AlexsJones

While running AX on local KIND/Substrate at d8ed0fe, creating a task and then suspending/resuming it produced three ActorTemplates, each with a golden snapshot, without changing the workload.

Repro: apply a task, wait for Ready, then run ax suspend task <name> and ax resume task <name>. List its templates with kubectl ate get actor-templates -a <atespace>.

AX_TASK_YAML includes task status and spec.suspend, and that environment value feeds the template-name hash. Lifecycle changes therefore create new templates unnecessarily.

Small proposed fix: exclude those fields from the embedded launch configuration. The existing lifecycle test now checks template reuse and confirms a command change still produces a distinct template. It fails before the fix; controller, runner and metadata tests pass with -race afterward.

Sharing here rather than opening a PR while contributions are restricted.

Activity

  1. self-assigned this
    on Sep 23, 2026
  2. rakyll commented on Sep 24, 2026

    @rakyll
    Member

    @AlexsJones I sent you an invite that should enable PRs for you.

    We are in the process of rewriting Agent Substrate's actor lifecycle and hence will rewrite our controller. In the meantime, I'm happy to patch changes if you send any. The controller will be written pretty soon :)

  3. AlexsJones commented on Sep 24, 2026

    @AlexsJones
    CollaboratorAuthor

    Thanks @rakyll, much appreciated! I've opened #390 with the fix. Happy to rework it or fold it into the controller rewrite, whichever suits.

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

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions