Configure scheduled tasks for SysAgent

Updated at:

SysAgent scheduled tasks let SysAgent automatically run a task at the time that you set, and push the results to the group where the specified IM bot resides. This topic describes how to create a scheduled task and how to enable and disable a task.

Scenarios

  • Automatically inspect the system health status before the daily release.

  • Confirm the capacity and stability baseline on a schedule before major promotions or holidays.

  • Periodically summarize exceptions in GPU tasks, alerts, or logs.

  • Automatically push inspection results to the O&M group on a schedule, without manual initiation.

Create a scheduled task

After you open the Scheduled tasks panel in the SysAgent interface, you can create a task by using either of the following methods.

Method 1: Create a task (manual input)

  1. In the upper-right corner of the Scheduled tasks panel, click Create task.

  2. Enter a Task name to identify the task in the list.

  3. Set the Scheduled time: first select the execution frequency (Do not repeat, Interval, Hourly, Daily, Weekly, Monthly, or Custom), and then set the specific execution time.

  4. (Optional) Select a Target IM bot. The task results are pushed to the group where the bot resides. If no bot is available, click Add bot to complete the configuration first.

  5. In Task content, use natural language to describe the operation that you want SysAgent to perform.

  6. After you confirm that the information is correct, click Save. The task appears in the list and shows the scheduled time and the next execution time.

Method 2: Create with Agent (generated through conversation)

  1. In the Scheduled tasks panel, click Create with Agent.

  2. In the conversation box, describe your requirements in natural language, including what to do, when to run it, and the group or bot that receives the results.

  3. Confirm the information as prompted by SysAgent to automatically generate the corresponding scheduled task.

Enable and disable a task

  • In the task list, each task card shows the scheduled time, task content, target bot, and Next execution time.

  • Use the toggle on the task card to enable or disable the task: when enabled, the task runs automatically on schedule; when disabled, execution is paused.

  • You can use the Search task name box and the Status filter at the top to quickly find the target task.

FAQ

  • The task does not run on time: make sure that the task toggle is enabled, and check whether the scheduled time is set correctly.

  • The group does not receive the results: make sure that a target IM bot is selected, and that the bot has been added to the corresponding group and is in a normal state.

  • The results do not meet expectations: check whether the description in Task content is accurate. If necessary, create a new task with a revised description and run it again.

  • No selectable bot is found: add a bot in IM bot management of SysAgent first, and then return to the task to select it.