Skip to content

Commit

Permalink
Allow removal of a workflow with any Archive status (#828)
Browse files Browse the repository at this point in the history
  • Loading branch information
pagrubel authored May 24, 2024
1 parent 34a3cea commit 538cdb2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion beeflow/client/bee_client.py
Original file line number Diff line number Diff line change
Expand Up @@ -374,7 +374,7 @@ def remove(wf_id: str = typer.Argument(..., callback=match_short_id)):

wf_status = get_wf_status(wf_id)
print(f"Workflow Status is {wf_status}")
if wf_status in ('Cancelled', 'Archived', 'Paused'):
if wf_status in ('Cancelled', 'Paused') or 'Archived' in wf_status:
verify = f"All stored information for workflow {_short_id(wf_id)} will be removed."
verify += "\nContinue to remove? yes(y)/no(n): """
response = input(verify)
Expand Down

0 comments on commit 538cdb2

Please sign in to comment.