Skip to content

Add resources.instance_type to TaskSpec for exact instance-type pinning #413

Closed

Description

@scttfrdmn

Summary

The workflow-adapter TaskSpec (pkg/taskproto) has no field for an exact instance type. Adapters that carry an instance-type hint (e.g. CWL's spore.host#InstanceType / spawn:instanceType) can only map it lossily to a truffle family allow-list (e.g. c7i.4xlarge → the c7i family), not pin the exact type.

Ask

Add an optional resources.instance_type (string) to TaskSpec. When set, spawn task run should pin that exact type and skip the truffle cheapest-in-family sizing (or validate the type is viable and use it directly). When empty, keep the current family-allow-list + cheapest-price sizing.

Motivation

Surfaced during the cwl-spawn adapter migration (spawn#386 increment 4). cwl-spawn currently documents the hint as a family allow-list, not an exact pin, precisely because TaskSpec can't express one. Researchers who ask for a specific type (e.g. a particular GPU or memory ratio) expect that exact type.

Refs #386

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