Create a timer task
Describes how to create a timer task in the KSV web console.
This topic describes how to create a timer task in the KubeSphere Virtualization (KSV) web console.
Prerequisites
The user that you use has been granted the permissions to manage timer tasks. Project administrators and operators can perform all operations on timer tasks, and project viewers can view only timer tasks. For more information about permissions, see Timer.
Procedure
Log in to the KSV web console.
In the top navigation bar, click O&M Tools to go to the management page of O&M tools.
In the left-side navigation pane, choose Timer > Timer Tasks.
On the Timer Tasks tab, click Create in the upper-right corner.
In the dialog box that appears, configure basic information for the timer task. The following table describes the parameters.
Parameter Description NameThe custom name of the timer task.The name can contain only letters, digits, and hyphens (-), and must start and end with a letter or a digit. The name can be up to 16 characters in length.Select ProjectThe project name in which the timer task is created. User admin can create timer tasks in all projects, and project administrators and operators can create timer tasks in the projects to which they belong.DescriptionThe description of the timer task.Configure the policy for the timer task. The following table describes the parameters.
Parameter Description OperationThe operation to perform by the timer task. You can select Start VM, Stop VM, Restart VM, or Create Snapshot as needed.Select MethodThe method that is used to run the timer task. You can select Execute Periodically or Execute Once.ObjectThe VM on which the timer task runs. You can select one or more VMs in the selected project.PolicyThe policy that is used to run the timer task. If no policy can meet your business requirements, click Create Policy. This parameter is available only when Select Method is set to Execute Periodically.TimeThe point in time at which the timer task runs. This parameter is available only when Select Method is set to Execute Once.Maximum AttemptsThe maximum number of times that the timer task is allowed to fail. If the specified value is exceeded, the system will stop or skip the task based on the settings. Valid values: 3 to 8.Whether to Skip ErrorThe operation to perform if the number of the maximum attempts has been reached. You can select Skip Error or Stop Task.Click OK. The task appears in the timer task list after it is created.