Skip to content

Commit

Permalink
feat(fix): Avoid exit 1 in risectl if ignore not found (CLOUD-2493) (#…
Browse files Browse the repository at this point in the history
  • Loading branch information
CAJan93 authored Mar 13, 2024
1 parent ee2bc89 commit a82a02f
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/ctl/src/cmd_impl/meta/reschedule.rs
Original file line number Diff line number Diff line change
Expand Up @@ -293,6 +293,10 @@ pub async fn unregister_workers(
}

if target_worker_ids.is_empty() {
if ignore_not_found {
println!("Warn: No worker provided, ignored");
return Ok(());
}
println!("No worker provided");
exit(1);
}
Expand Down

0 comments on commit a82a02f

Please sign in to comment.