Skip to content

Commit

Permalink
docs(cli): clarify the difference b/t retry and resubmit (#11625)
Browse files Browse the repository at this point in the history
  • Loading branch information
agilgur5 authored and terrytangyuan committed Sep 5, 2023
1 parent 408a0a4 commit f3000b9
Show file tree
Hide file tree
Showing 4 changed files with 12 additions and 2 deletions.
1 change: 1 addition & 0 deletions cmd/argo/commands/resubmit.go
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,7 @@ func NewResubmitCommand() *cobra.Command {
command := &cobra.Command{
Use: "resubmit [WORKFLOW...]",
Short: "resubmit one or more workflows",
Long: "Submit a completed workflow again. Optionally override parameters and memoize. Similar to running `argo submit` again with the same parameters.",
Example: `# Resubmit a workflow:
argo resubmit my-wf
Expand Down
3 changes: 2 additions & 1 deletion cmd/argo/commands/retry.go
Original file line number Diff line number Diff line change
Expand Up @@ -40,11 +40,12 @@ func NewRetryCommand() *cobra.Command {
command := &cobra.Command{
Use: "retry [WORKFLOW...]",
Short: "retry zero or more workflows",
Long: "Rerun a failed Workflow. Specifically, rerun all failed steps. The same Workflow object is used and no new Workflows are created.",
Example: `# Retry a workflow:
argo retry my-wf
# Retry multiple workflows:
# Retry multiple workflows:
argo retry my-wf my-other-wf my-third-wf
Expand Down
4 changes: 4 additions & 0 deletions docs/cli/argo_resubmit.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,10 @@

resubmit one or more workflows

### Synopsis

Submit a completed workflow again. Optionally override parameters and memoize. Similar to running `argo submit` again with the same parameters.

```
argo resubmit [WORKFLOW...] [flags]
```
Expand Down
6 changes: 5 additions & 1 deletion docs/cli/argo_retry.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,10 @@

retry zero or more workflows

### Synopsis

Rerun a failed Workflow. Specifically, rerun all failed steps. The same Workflow object is used and no new Workflows are created.

```
argo retry [WORKFLOW...] [flags]
```
Expand All @@ -13,7 +17,7 @@ argo retry [WORKFLOW...] [flags]
argo retry my-wf
# Retry multiple workflows:
# Retry multiple workflows:
argo retry my-wf my-other-wf my-third-wf
Expand Down

0 comments on commit f3000b9

Please sign in to comment.