Updated on 2024-03-15 GMT+08:00

Creating a Scheduled Task

Scenarios

This section describes how to start, shut down, restart an APS and recompose system disks periodically.

Impact on the System

After an APS is shut down, unsaved personal data may be lost.

Prerequisites

An APS has been created.

Procedure

  1. Log in to the management console of Workspace Application Streaming as an administrator.
  2. On the console page, click Scheduled Tasks.

    The Scheduled Tasks page is displayed.

  3. Click Create Task in the upper right corner of the page.

    The Create Scheduled Task page is displayed.

  4. Configure a scheduled task.

    • Task type:
      • Shut down

        After a scheduled shutdown task is set, the system does not execute the task if there are users accessing the server at the scheduled time. Instead, the system automatically postpones the task to the next scheduled time to ensure user experience.

        If the forcible shutdown option is selected, the system forcibly shuts down the server as scheduled.

      • Start
      • Restart

        After a scheduled restart task is set, the system does not execute the restart task if there are users accessing the server at the scheduled time. Instead, the system automatically postpones the task to the next scheduled time to ensure user experience.

        If the forcible restart option is selected, the system forcibly restarts the server as scheduled.

      • Recompose system disk
        • After a scheduled system disk recomposing task is set, the system does not execute the recomposing task if there are users accessing the server at the scheduled time. Instead, the system automatically postpones the task to the next scheduled time to ensure user experience.
        • If the forcible system disk recomposing option is selected, the system forcibly recomposes the system disk when the scheduled time arrives.
        • Restriction: When recomposing the system disk, ensure that the initial image still exists. Otherwise, the system disk cannot be recomposed.
        • After recomposing the system disk, the data on the system disk will be lost. If the data is needed after the system disk is recomposed, notify the user to back up the data in advance.
    • Scheduled Task Name: This parameter is user-defined.
    • Execution Interval: The following intervals are supported. Select one as required.
      • Time Zone: Time zone of users.
      • Specified Time: The time is accurate to seconds.
      • By day: You can set the specific time, interval (days), and expiration time.
      • By week: You can set the specific date, time, and expiration time.
      • By month: You can set the specific month, date, time, and expiration time.
        • Dates that do not exist are automatically skipped, for example, February 30.
        • If the daylight saving time (DST) is used, view To Execute at to check the time when the task is to be executed.

  5. Click Next.

    The page of selecting target objects is displayed.

  6. In the Available Object area, search for the server name or server group name in the search box and select it.
  7. Click Create Now.