Skip to content

Commit

Permalink
remove restart and resume
Browse files Browse the repository at this point in the history
  • Loading branch information
manojdbos committed Jan 22, 2025
1 parent 37800f7 commit 113b6d9
Showing 1 changed file with 0 additions and 26 deletions.
26 changes: 0 additions & 26 deletions dbos/cli.py
Original file line number Diff line number Diff line change
Expand Up @@ -432,31 +432,5 @@ def cancel(
print(f"Workflow {uuid} has been cancelled")


@workflow.command(
help="Resume a workflow from the last step it executed, keeping its UUID"
)
def resume(
uuid: Annotated[str, typer.Argument()],
appdir: Annotated[
typing.Optional[str],
typer.Option("--app-dir", "-d", help="Specify the application root directory"),
] = None,
) -> None:
print("resume workflows")
_reattempt_workflow(uuid, False)


@workflow.command(help="Restart a workflow from the beginning with a new UUID")
def restart(
uuid: Annotated[str, typer.Argument()],
appdir: Annotated[
typing.Optional[str],
typer.Option("--app-dir", "-d", help="Specify the application root directory"),
] = None,
) -> None:
print("restart workflows")
_reattempt_workflow(uuid, True)


if __name__ == "__main__":
app()

0 comments on commit 113b6d9

Please sign in to comment.