Skip to content

[Bug]: Instances created for jobs are not divided into blocks #3475

Description

@jvstme

Steps to reproduce

  1. Create an elastic fleet with blocks: auto.
> cat fleets/default.dstack.yml
type: fleet
name: default
nodes: ..
blocks: auto

> dstack apply -f fleets/default.dstack.yml
  1. Run a job on the fleet, so that it provisions an instance that could be divided into more than one block.
> cat .dstack.yml 
type: dev-environment
ide: vscode

> dstack apply -b aws --fleet default

Actual behaviour

The provisioned instance is not divided into blocks.

> dstack fleet
 FLEET    INSTANCE  BACKEND          RESOURCES                        PRICE    STATUS  CREATED    
 default  0         aws (eu-west-3)  cpu=2 mem=8GB disk=100GB (spot)  $0.0292  busy    5 mins ago 

> dstack fleet get default --json | jq '.instances[0].total_blocks'
1

Expected behaviour

The provisioned instance is divided into blocks (in this example, 2 blocks).

dstack version

0.20.3

Server logs

Additional information

No response

Activity

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

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions