基因容器 GCS
基因容器 GCS
- 最新动态
- 产品介绍
- 快速入门
- 用户指南
- Cromwell引擎使用指南
- 最佳实践
- 流程语法参考
- Python SDK参考
- API参考
-
CLI参考
- 命令总览
- 安装命令行工具
- 示例:使用命令行执行简单脚本
-
gcs 命令详情
- gcs version
- gcs config add
- gcs config list
- gcs get kubectl
- gcs get enviroment
- gcs set env
- gcs get sfs
- gcs set sfs
- gcs get obscli
- gcs obs upload
- gcs get workflow
- gcs create workflow
- gcs del workflow
- gcs update workflow
- gcs sub workflow
- gcs get execution
- gcs create execution
- gcs del execution
- gcs set execution
- gcs sub job
- gcs sub repjob
- gcs get tool
- gcs sub wdl
- gcs get wdl
- gcs set wdl
- get get fr
- config.ini配置说明
- 常见问题
- 视频帮助
- 文档下载
- 通用参考
链接复制成功!
停止/启动/重试execution
operate_execution(execution_id, action, priority=0,timeout=720, inputs_json={})
功能描述
停止正在执行的execution、启动已停止的execution或重试已失败的execution。
建议在使用本接口前,先调用查询execution接口,查询已有execution的状态。
- 如果要停止正在执行的execution,则需要确保该查询execution接口返回值object.status.actionName为create,且object.status.objectStatus.phase为Running或是Pending。
- 如果要重新启动execution,则该execution的状态可以如下二选一:
- object.status.actionName为create,且object.status.objectStatus.phase为Failed或Cancelled。
- object.status.actionName为delete,且object.status.objectStatus.phase为Failed。
输入参数
参数 |
是否必选 |
参数类型 |
参数描述 |
---|---|---|---|
execution_id |
是 |
String |
执行结果ID,可以为创建execution接口的返回值。 |
action |
是 |
String |
操作类型,可以取如下两个值:
|
priority |
否 |
Int64 |
该操作的优先级,取值范围[0,999],0表示优先级最低,999表示优先级最高,默认值为0。 |
timeout |
否 |
Int64 |
超时时间,单位为分钟,如果不填,则默认是1440分钟。
|
inputs_json |
否 |
Map |
编辑流程输入参数,启动时替换流程文件中的inputs值,例如{"key1":"value1", "key2":"value2"}。 仅当action为retry时,填写该参数有效。 |
返回值
参数 |
参数类型 |
描述 |
---|---|---|
id |
String |
执行ID。 |
父主题: GCS流程执行