All Products
Search
Document Center

WUYING Workspace:Configure a scheduled task

Last Updated:Apr 19, 2024

You can use scheduled tasks to streamline the management of cloud computers and improve user experience in specific scenarios, and effectively reduce costs. This topic describes how to configure scheduled tasks for cloud computers.

Background

Scheduled tasks

The following table describes scheduled tasks and scenarios.

Task

Description

Scheduled Start, Stop, Restart, and Reset

You can enable these tasks if cloud computers are used on a routine basis to implement cloud computer automation.

Scheduled stop tasks can reduce costs of pay-as-you-go cloud computers. Scheduled reset tasks can initialize system disks of cloud computers and are commonly used in educational and training scenarios.

Scheduled Task upon Inactivity

If no operation is detected on cloud computers for a period of time after the cloud computers are connected, it can be assumed that the cloud computers are not used for now. After you configure a scheduled task upon inactivity for a cloud computer, the cloud computer is automatically stopped when the specified period of time is reached. This type of scheduled task can help reduce costs of pay-as-you-go cloud computers.

Important

The system determines whether to perform a scheduled task for a cloud computer based on whether inputs are detected on the cloud computer. If your cloud computer is used to automatically play videos or run automated programs, the videos or programs may be interrupted if you turn on Scheduled Task upon Inactivity. In addition, if you configure a scheduled restart or stop task, the system automatically restarts or stops the cloud computer when the scheduled point in time is reached. This may cause data loss. We recommend that you exercise caution when you configure this type of scheduled task.

Scheduled Task upon Disconnection

For pay-as-you-go cloud computers, you are charged for the cloud computers when they are in the Running state, regardless of whether end users are connecting to the cloud computers. In this case, billing continues even when end users disconnect from the cloud computers. To prevent unexpected fees generated when an end user forgets to stop a cloud computer after disconnection, you can configure a scheduled task upon disconnection for the cloud computer. When the specified period of time is reached, the cloud computer is automatically stopped.

Start Cloud Computer After Client Logon or Hardware Client Launch and Stop Cloud Computer After Client Logout or Hardware Client Shutdown

These types of scheduled tasks help streamline user operations and eliminate the need to manually start and stop cloud computers.

Automatic stop can reduce the costs of pay-as-you-go cloud computers.

Applicable scope

Scheduled tasks upon inactivity takes effect only for Windows cloud computers that use the Adaptive Streaming Protocol (ASP) and whose images are of V1.0.4 or later.

Procedure

The following section describes how to configure scheduled tasks for cloud computers.

  1. Log on to the WUYING Workspace (Pro Edition) console.

  2. In the left-side navigation pane, choose Resources & Terminals > Cloud Computers.

  3. In the upper-left corner of the top navigation bar, select a region.

  4. On the Cloud Computers page, you can perform operations on one or more cloud computers:

    • Single cloud computer: Find the cloud computer that you want to manage, click the ⋮ icon in the Actions column and click Configure Scheduled Task.

    • Multiple cloud computers: Select the cloud computers that you want to manage and then choose More > Configure Scheduled Task.

  5. In the Configure Scheduled Task panel, configure scheduled tasks based on your business requirements.

    Scheduled Start, Stop, Restart, and Reset

    1. Turn on Scheduled Start, Stop, Restart, and Reset.

    2. Select a task type and specify a cycle and a point in time to perform the scheduled task.

      After you specify the cycle and point in time, you can preview the time of the scheduled task.

      Note
      • If the specified point in time of the scheduled stop or restart task is reached and end users are still connected to the cloud computers, the system executes the tasks at the next scheduled point in time based on user connections to cloud computers. If you want the system to execute the scheduled stop or restart task, select Forcefully Execute.

      • For scheduled tasks, the system initializes the system disks of cloud computers based on images. The installed software and private data on the current system disks are cleared, and the data disks of the cloud computers remain unchanged. If you want to reset the data disks, select Reset Data Disk Simultaneously.

    Scheduled Task upon Inactivity

    1. Turn on Scheduled Task upon Inactivity.

    2. Select a period of time and the action that you want the system to execute on cloud computers. When end users do not perform operations on the cloud computers for the specified period of time, the system executes the specified action, such as stopping, restarting, or disconnecting from cloud computers.

    Scheduled Task upon Disconnection

    1. Turn on Scheduled Task upon Disconnection.

    2. Select an effective rule for the task. Valid values:

      • Task Configured by End User: Scheduled tasks upon disconnection take effect based on the settings that are configured by end users on Alibaba Cloud Workspace clients (hereinafter referred to as WUYING clients). For more information, see Configure a scheduled stop policy for a cloud computer.

      • Task Configured by Administrator: Scheduled tasks upon disconnection take effect based on the settings that are configured by administrators in the WUYING Workspace console. If you select this option, you must specify an action and a period of time to execute the action.

    Start Cloud Computer After Client Logon or Hardware Terminal Launch

    If you turn on Start Cloud Computer After Client Logon or Hardware Terminal Launch, cloud computers are automatically powered on after end users log on to WUYING clients and connect to the cloud computers.

    Stop Cloud Computer After Client Logout or Hardware Client Shutdown

    1. Turn on Stop Cloud Computer After Client Logout or Hardware Client Shutdown.

    2. Specify a period of time in minutes to stop cloud computers after end users log out of WUYING clients.

      Note

      If end users log on to WUYING clients and reconnect to the cloud computers before the specified period of time elapses, the scheduled task become invalid.

  6. Confirm the preceding settings of different types of scheduled tasks and click Save.

What to do next

You can perform the following operations to view execution records of scheduled tasks:

  1. In the left-side navigation pane, choose Resources & Terminals > Cloud Computers.

  2. In the upper-left corner of the top navigation bar, select a region.

  3. On the Cloud Computers page, click the ID of the cloud computer that you want to manage.

  4. Click the Scheduled Task Execution tab to view execution records of scheduled tasks.

    Note

    You can view execution records of scheduled tasks in the last 30 days.