5.6. 取消等待同步任务
大多数环境会按照计划的基础同步存储库。您可能会遇到需要取消待处理的同步任务的情况。
先决条件
- 存在现有的软件仓库。
- 有调度的同步任务。
流程
进入 Red Hat Update Infrastructure Management Tool 主页:
rhui-manager
[root@rhua ~]# rhui-managerCopy to Clipboard Copied! Toggle word wrap Toggle overflow -
按
s键,以选择 同步状态和调度。 -
在 Synchronization Status 屏幕中,按
cw键以选择 取消等待同步任务。 为要取消的任务或任务输入值:
Select one or more repositories for which you want to cancel their pending tasks. - 1: Single Sign-On 7.4 for RHEL 8 x86_64 (Source RPMs) from RHUI Enter value (1-1) to toggle selection, 'c' to confirm selections, or '?' for more commands: 1
Select one or more repositories for which you want to cancel their pending tasks. - 1: Single Sign-On 7.4 for RHEL 8 x86_64 (Source RPMs) from RHUI Enter value (1-1) to toggle selection, 'c' to confirm selections, or '?' for more commands: 1Copy to Clipboard Copied! Toggle word wrap Toggle overflow 按
c键确认您的选择:Select one or more repositories for which you want to cancel their pending tasks. x 1: Single Sign-On 7.4 for RHEL 8 x86_64 (Source RPMs) from RHUI Enter value (1-1) to toggle selection, 'c' to confirm selections, or '?' for more commands: c
Select one or more repositories for which you want to cancel their pending tasks. x 1: Single Sign-On 7.4 for RHEL 8 x86_64 (Source RPMs) from RHUI Enter value (1-1) to toggle selection, 'c' to confirm selections, or '?' for more commands: cCopy to Clipboard Copied! Toggle word wrap Toggle overflow 按
y继续:The pending tasks will be canceled for the following repositories: Single Sign-On 7.4 for RHEL 8 x86_64 (Source RPMs) from RHUI Proceed? (y/n) y
The pending tasks will be canceled for the following repositories: Single Sign-On 7.4 for RHEL 8 x86_64 (Source RPMs) from RHUI Proceed? (y/n) yCopy to Clipboard Copied! Toggle word wrap Toggle overflow
验证
如果取消成功,则会显示类似的信息:
Canceling pending task for repo Single Sign-On 7.4 for RHEL 8 x86_64 (Source RPMs) from RHUI ... ... done
Canceling pending task for repo Single Sign-On 7.4 for RHEL 8 x86_64 (Source RPMs) from RHUI ... ... doneCopy to Clipboard Copied! Toggle word wrap Toggle overflow 如果没有待处理的同步任务,则会显示以下消息:
There are no repositories with pending sync related tasks.
There are no repositories with pending sync related tasks.Copy to Clipboard Copied! Toggle word wrap Toggle overflow