
# gcs set execution
#### 功能
设置指定execution状态启停。
#### 语法
**gcs set execution**executionId \[params\]
execution可以简写为exec，即：
**gcs set exec**executionId \[params\]
#### 参数说明
表1参数说明 
| 参数名称        | 是否必选 | 简写  | 描述                                                                                                                                                                                                                                                                           |
|:---|:---|:---|:---|
| executionId | 是    | 不涉及 | execution guid ，创建execution时生成，也可以通过[gcs get execution](https://support.huaweicloud.com/clir-gcs/gcs_clir_04_0013.html) 获取。                                                                                                                                                  |
| --action    | 是    | -a  | action 可以设置为： - cancel：停止；  - retry：重启，需要任务在失败情况触发。   |
   
#### 使用示例
```
gcs set execution xxxx --action cancel
current environment is gcs-env-gcsdebug
set execution xxxx cancel succeed
```
