5.6. 取消等待同步任务
大多数环境会按照计划的基础同步存储库。您可能会遇到需要取消待处理的同步任务的情况。
先决条件
- 存在现有的软件仓库。
- 有调度的同步任务。
流程
进入 Red Hat Update Infrastructure Management Tool 主页:
[root@rhua ~]# rhui-manager
-
按
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
按
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
按
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
验证
如果取消成功,则会显示类似的信息:
Canceling pending task for repo Single Sign-On 7.4 for RHEL 8 x86_64 (Source RPMs) from RHUI ... ... done
如果没有待处理的同步任务,则会显示以下消息:
There are no repositories with pending sync related tasks.