All Products
Search
Document Center

Dataphin:Configure offline task running resources

Last Updated:Jan 13, 2026

This topic describes how to configure the CPU and memory resources allocated for executing the current offline task within its property panel.

Procedure

Important

If the task code contains the @required_resource{} annotation, the annotation takes priority. The system allocates resources based on the annotation, and the settings in the Property panel do not take effect.

  1. Navigate to the Dataphin home page, select Development > Data Development from the top menu bar.

  2. On the Development page, select Project from the top menu bar (Dev-Prod mode requires environment selection).

  3. In the navigation pane on the left, choose Data Processing > Script Task. Then, in the Script Task list, single-click the desired task name.

  4. In the right sidebar, click Property, and within the Property panel's Running Resources section, set the CPU and Memory values.

    The table below displays the default values for CPU and memory across various node types.

    Task Type

    CPU (Core)

    Memory (MB)

    • Python

    • Shell

    0.1

    256

    • Spark on MaxCompute

    • Spark on Yarn

    0.3

    2048

    • MapReduce on MaxCompute

    • MapReduce on Yarn

    0.3

    512

    Note

    The maximum supported values for CPU and memory are 4 cores and 16GB, respectively. Allocating excessive resources to a task can lead to resource contention, so it is advisable to allocate resources judiciously based on requirements.