Skip to content
This repository has been archived by the owner on Jan 3, 2025. It is now read-only.

support using task-file when need task-name #220

Merged
merged 9 commits into from
Aug 17, 2020
Merged
Show file tree
Hide file tree
Changes from 6 commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions zh/dmctl-introduction.md
Original file line number Diff line number Diff line change
Expand Up @@ -90,18 +90,18 @@ Available Commands:
offline-worker offline-worker <name> <address>
operate-source operate-source <operate-type> <config-file>
pause-relay pause-relay <-s source ...>
pause-task pause-task [-s source ...] <task-name>
pause-task pause-task [-s source ...] <task-name | task-file>
purge-relay purge-relay <-s source> [--filename] [--sub-dir]
query-error query-error [-s source ...] [task-name]
query-status query-status [-s source ...] [task-name] [--more]
resume-relay resume-relay <-s source ...>
resume-task resume-task [-s source ...] <task-name>
resume-task resume-task [-s source ...] <task-name | task-file>
show-ddl-locks show-ddl-locks [-s source ...] [task-name]
sql-inject sql-inject <-s source> <task-name> <sql1;sql2;>
sql-replace sql-replace <-s source> [-b binlog-pos] [-p sql-pattern] [--sharding] <task-name> <sql1;sql2;>
sql-skip sql-skip <-s source> [-b binlog-pos] [-p sql-pattern] [--sharding] <task-name>
start-task start-task [-s source ...] <config-file>
stop-task stop-task [-s source ...] <task-name>
stop-task stop-task [-s source ...] <task-name | task-file>
switch-relay-master switch-relay-master <-s source ...>
unlock-ddl-lock unlock-ddl-lock [-s source ...] <lock-ID>
update-master-config update-master-config <config-file>
Expand Down
6 changes: 3 additions & 3 deletions zh/pause-task.md
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ help pause-task
pause a specified running task

Usage:
dmctl pause-task [-s source ...] <task-name> [flags]
dmctl pause-task [-s source ...] <task-name | task-file> [flags]

Flags:
-h, --help help for pause-task
Expand All @@ -49,9 +49,9 @@ pause-task [-s "mysql-replica-01"] task-name
- 可选
- 指定在特定的一个 MySQL 源上暂停数据同步任务的子任务
- 如果设置,则只暂停该任务在指定 MySQL 源上的子任务
- `task-name`:
- `task-name| task-file`:
- 必选
- 指定任务名称
- 指定任务名称或任务文件路径

## 返回结果示例

Expand Down
8 changes: 4 additions & 4 deletions zh/resume-task.md
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ help resume-task
resume a specified paused task

Usage:
dmctl resume-task [-s source ...] <task-name> [flags]
dmctl resume-task [-s source ...] <task-name | task-file> [flags]

Flags:
-h, --help help for resume-task
Expand All @@ -41,9 +41,9 @@ resume-task [-s "mysql-replica-01"] task-name
- 可选
- 指定在特定的一个 MySQL 源上恢复数据同步任务的子任务
- 如果设置,则只恢复该任务在指定 MySQL 源上的子任务
- `task-name`:
- `<task-name | task-file`:
lance6716 marked this conversation as resolved.
Show resolved Hide resolved
- 必选
- 指定任务名称
- 指定任务名称或任务文件路径

## 返回结果示例

Expand All @@ -67,4 +67,4 @@ resume-task test
}
]
}
```
```
8 changes: 4 additions & 4 deletions zh/stop-task.md
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ help stop-task
stop a specified task

Usage:
dmctl stop-task [-s source ...] <task-name> [flags]
dmctl stop-task [-s source ...] <task-name | task-file> [flags]

Flags:
-h, --help help for stop-task
Expand All @@ -41,9 +41,9 @@ stop-task [-s "mysql-replica-01"] task-name
- 可选
- 指定在特定的一个 MySQL 源上停止数据同步任务的子任务
- 如果设置,则只停止该任务在指定 MySQL 源上的子任务
- `task-name`:
- `task-name | task-file`:
- 必选
- 指定任务名称
- 指定任务名称或任务文件路径

## 返回结果示例

Expand All @@ -67,4 +67,4 @@ stop-task test
}
]
}
```
```
2 changes: 1 addition & 1 deletion zh/task-configuration-file.md
Original file line number Diff line number Diff line change
Expand Up @@ -89,6 +89,6 @@ mysql-instances:

1. 修改任务配置文件,将 `remove-meta` 设置为 `false`

2. 通过 `stop-task` 命令停止任务:`stop-task <task-name>`
2. 通过 `stop-task` 命令停止任务:`stop-task <task-name | task-file>`

3. 通过 `start-task` 命令启动任务:`start-task <config-file>`