Skip to content

TaskSpec.resources is documented but never applied to the ActorTemplate #369

Closed

Description

@zhoukuncheng

Summary

TaskSpec.resources (requests/limits for cpu and memory) is part of the proto, documented in docs/manifests.md with a full example, and shown in ax describe, but nothing in the controller reads it. internal/controller/reconciler.go never references Spec.Resources, and BuildActorTemplate in internal/substrate/client.go creates the ActorTemplate without a resources block, so the sandbox is sized purely by the WorkerPool/template defaults. Users who set limits get no error and no effect.

AX d8ed0fe.

Reproduction

Apply the Task example from docs/manifests.md (requests 500m/1Gi, limits 2/4Gi), then inspect the created template with kubectl ate get actor-template <task>-tmpl-... -a <atespace> -o yaml: there is no resources entry.

Expected

Either the values are mapped onto the ActorTemplate resources (Substrate's limits list of {name, quantity}), or the field is documented as not yet implemented and ax-server rejects/warns when it is set.

Suggested fix

Smallest honest change: add "not yet implemented" next to resources in docs/manifests.md and log a warning in the reconciler when the field is non-empty. Full fix: translate Spec.Resources.Limits into ActorTemplate.Resources.Limits in BuildActorTemplate and include it in the template hash so a change re-provisions the template.

Activity

  1. added a commit that references this issue on Sep 25, 2026
    03d6f5d
  2. rakyll commented on Sep 27, 2026

    @rakyll
    Member

    Related to #433.

  3. added 2 commits that reference this issue on Oct 14, 2026
    55c8998
    14e811f
  4. added a commit that references this issue on Oct 19, 2026
    b2c59ae
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

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions