You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+13-12Lines changed: 13 additions & 12 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -162,7 +162,7 @@ More example workflow **config.yaml** files can be found in the [Trickest Workfl
162
162
163
163
### Continuous Integration
164
164
165
-
You can find the Github Action for the `trickest-cli` at https://github.com/trickest/action and the Docker image at https://quay.io/trickest/trickest-cli.
165
+
You can find the GitHub Action for the `trickest-cli` at https://github.com/trickest/action and the Docker image at https://quay.io/trickest/trickest-cli.
166
166
167
167
The `execute` command can be used as part of a CI pipeline to execute your Trickest workflows whenever your code or infrastructure changes. Optionally, you can use the `--watch` command inside the action to watch a workflow's progress until it completes.
168
168
@@ -216,16 +216,17 @@ Use the **stop** command to stop a running workflow or node
| --url | string | / | URL copied from the Trickest platform, referencing a workflow and, optionally, a run/node |
222
-
| --workflow | string | / | The name of the workflow. |
223
-
| --project | string | / | The name of the project to which workflow belongs |
224
-
| --space | string | / | The name of the space to which workflow belongs |
225
-
| --run | string | / | Stop a specific run |
226
-
| --all | bool | false | Stop all runs |
227
-
| --nodes | string | / | A comma-separated list of nodes to stop. If none specified, the entire run will be stopped. If a node is a task group, the `--child` flag must be used |
228
-
| --child | string | / | A comma-separated list or range of child tasks to stop. Example: `--child 1,2,3` or `--child 1-3` will stop the first three tasks in the specified node's taskgroup |
| --url | string | / | URL copied from the Trickest platform, referencing a workflow and, optionally, a run/node |
222
+
| --workflow | string | / | The name of the workflow. |
223
+
| --project | string | / | The name of the project to which workflow belongs |
224
+
| --space | string | / | The name of the space to which workflow belongs |
225
+
| --run | string | / | Stop a specific run |
226
+
| --all | bool | false | Stop all runs |
227
+
| --nodes | string | / | A comma-separated list of nodes to stop. If none specified, the entire run will be stopped. If a node is a task group, the `--child` flag must be used |
228
+
| --child | string | / | A comma-separated list or range of child tasks to stop. Example: `--child 1,2,3` or `--child 1-3` will stop the first three tasks in the specified node's taskgroup |
229
+
| --status | string | running | A comma-separated list of run statuses to evaluate for stopping. Example: `pending,submitted,running`|
229
230
230
231
## Output
231
232
Use the **output** command to download the outputs of your particular workflow execution(s) to your local environment.
We look forward to any feedback you want to share with us or if you're stuck with a problem you can contact us at [[email protected]](mailto:[email protected]).
444
445
445
-
You can also create an [Issue](https://github.com/trickest/trickest-cli/issues/new/choose) in the Github repository.
446
+
You can also create an [Issue](https://github.com/trickest/trickest-cli/issues/new/choose) in the GitHub repository.
StopCmd.Flags().BoolVar(&cfg.RunSpec.AllRuns, "all", false, "Stop all runs")
31
33
StopCmd.Flags().StringVar(&cfg.RunSpec.RunID, "run", "", "Stop a specific run")
32
34
StopCmd.Flags().StringSliceVar(&cfg.Nodes, "nodes", []string{}, "Nodes to stop. If none specified, the entire run will be stopped. If a node is a task group, the `--child` flag must be used (can be used multiple times)")
33
35
StopCmd.Flags().StringSliceVar(&cfg.ChildrenRanges, "child", []string{}, "Child tasks to stop. If a node is a task group, the `--child` flag must be used (can be used multiple times)")
36
+
StopCmd.Flags().StringSliceVar(&cfg.RunStatuses, "status", defaultStatuses, "Run statuses to be evaluated for stopping (can be used multiple times or comma-separated, e.g. `pending,submitted`)")
34
37
}
35
38
36
39
// StopCmd represents the stop command
@@ -93,14 +96,29 @@ func run(cfg *Config) error {
93
96
returnfmt.Errorf("failed to create client: %w", err)
0 commit comments