Skip to content

Commit acc14c1

Browse files
authored
Fix/cli bug fixes (#251)
fix: exit new execution if execution already exists Co-authored-by: sabinem <5292683+sabinem@users.noreply.github.com>
1 parent 523a463 commit acc14c1

1 file changed

Lines changed: 1 addition & 0 deletions

File tree

odtp/cli/new.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -219,6 +219,7 @@ def execution_entry(
219219
raise typer.Exit(code=1)
220220
if not validation_helpers.validate_execution_name_unique(execution_name, dt_id):
221221
console.print("[bold yellow]⚠️ WARNING: Execution already exists: you can rerun it [/bold yellow]")
222+
raise typer.Exit(code=1)
222223
if wf_id:
223224
workflow = db.get_document_by_id(wf_id, db.collection_workflows)
224225

0 commit comments

Comments
 (0)