Manage scheduled tasks

Updated at:

Scheduled tasks allow Data Agent to run instructions automatically on a schedule, for scenarios such as daily report generation, periodic checks, and batch processing. This topic describes how to view, create, and manage scheduled tasks.

Feature overview

Scheduled tasks allow Data Agent to automatically run the specified task at the time you configure, periodically completing work such as report generation, routine inspections, and batch processing without manual intervention.

With scheduled tasks, you can:

  • Automate repetitive work: delegate periodic tasks such as daily reports and metric inspections to the Agent, eliminating manual triggers.

  • Choose an execution environment based on reliability requirements: select In-Instance Execution for lightweight tasks to share the resources of the current instance, or Managed Execution for mission-critical tasks with strict reliability requirements, which is triggered and run by the DataWorks scheduling system.

  • Track task execution: view the status, duration, and history of each run on Execution Records to identify and troubleshoot issues.

Typical scenarios:

  • Report generation: run report generation instructions at a fixed time every day or week to produce daily and weekly reports.

  • Periodic checks: periodically check data quality and task running status.

  • Batch processing: run batch data processing instructions during off-peak hours.

Prerequisites

View scheduled tasks

  1. In the left-side navigation pane of Data Agent, click Scheduled Tasks.

  2. On the My Scheduled Tasks tab, view the list of created tasks. The list is displayed as a card grid, showing the task name, execution environment, next execution time, and status.

  3. Use the filters to narrow results:

    • Search box: search by task name.

    • Execution environment: All, In-Instance Execution, or Managed Execution.

    • Status: All, Running, or Stopped.

  4. Click the Execution Records tab to view the execution history, including the execution time, status, and duration.

Note

The task list refreshes automatically every 20 seconds.

Create a scheduled task

You can create a scheduled task manually through the form, or click Create via Chat to guide the Agent through creation in a session with natural language.

To create a task manually:

  1. On the Scheduled Tasks page, click Create Scheduled Task.

  2. Configure the following task parameters:

    Parameter

    Required

    Description

    Task Name

    Yes

    Supports only letters, digits, underscores, and hyphens (Chinese characters are also allowed).

    Task Description

    Yes

    The instruction content that the Agent executes. Click Expert Suites or Skills in the input box to reference enabled expert suites or installed skills in the description.

    Schedule Time

    Yes

    Use the visual picker to configure the execution frequency (such as Daily) and the specific time (such as 08:00).

    Model

    Yes

    Select the model that the Agent uses to run the task (for example, qwen3.8-max).

    Execution Environment

    Yes

    Select the runtime environment of the task. The execution environment cannot be changed after selection (see below).

    Resource Group

    Required for Managed Execution

    Defaults to the resource group bound to the current instance.

    Workspace

    Required for Managed Execution

    Defaults to the workspace associated with the current instance.

    CU

    Required for Managed Execution

    The compute resources required for a single task run. Default: 2.

  3. Select an execution environment:

    Execution environment

    Description

    Use case

    In-Instance Execution

    Runs the scheduled task within the current Data Agent instance and shares the resources of the current instance.

    Lightweight scheduled tasks that need to share the resources and session context of the current instance.

    Managed Execution

    The DataWorks scheduling system handles triggering and execution. The runtime environment is isolated from the current Data Agent, providing higher stability.

    Mission-critical tasks with strict reliability requirements.

    Important

    The execution environment cannot be changed after selection.

  4. Click Create.

Manage existing scheduled tasks

The following actions are available for created scheduled tasks:

Action

Description

View Details

Expand a read-only detail view of the task.

Edit

Modify the task configuration. Running tasks must be stopped before editing. Changes take effect at the next trigger.

Run Now

Manually trigger one task execution.

Stop

Stop a running scheduled task. You must enter the task name for confirmation.

Delete

Permanently delete the task.