Skip to content

Commit e1cbebc

Browse files
authored
fix(ingest): cancel command exits 0 on success (#225)
cancel_import was unconditionally calling std::process::exit(1), making a successful cancel indistinguishable from a failure. Exit code 1 is reserved for terminal-failure statuses (failed, cancelled) in status / poll_ingest — the cancel command itself succeeded. Co-authored-by: Eddie A Tejeda <669988+eddietejeda@users.noreply.github.com>
1 parent 8166f45 commit e1cbebc

1 file changed

Lines changed: 0 additions & 1 deletion

File tree

src/commands/ingest.rs

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1070,7 +1070,6 @@ fn cancel_import(workspace_id: &str, output: &str, id: &str) {
10701070
.dark_grey()
10711071
);
10721072
});
1073-
std::process::exit(1);
10741073
}
10751074

10761075
// --- list-datasources ------------------------------------------------------

0 commit comments

Comments
 (0)