Skip to content

Commit

Permalink
chore: use --fragments with ids separated by commas (#12438)
Browse files Browse the repository at this point in the history
Signed-off-by: Shanicky Chen <[email protected]>
  • Loading branch information
shanicky authored Sep 20, 2023
1 parent 08a2ca1 commit c9b356a
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions src/ctl/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -312,7 +312,7 @@ pub struct ScaleCommon {

/// Specify the fragment ids that need to be scheduled.
/// empty by default, which means all fragments will be scheduled
#[clap(long)]
#[clap(long, value_delimiter = ',')]
fragments: Option<Vec<u32>>,
}

Expand All @@ -325,13 +325,14 @@ pub struct ScaleVerticalCommands {
/// supported
#[clap(
long,
required = true,
value_delimiter = ',',
value_name = "all or worker_id or worker_host, ..."
)]
workers: Option<Vec<String>>,

/// The target parallelism per worker, requires `workers` to be set.
#[clap(long, requires = "workers")]
#[clap(long, required = true)]
target_parallelism_per_worker: Option<u32>,
}

Expand Down

0 comments on commit c9b356a

Please sign in to comment.