All Products
Search
Document Center

Cloud Parallel File Storage:Manage batch tasks

Last Updated:Jul 09, 2026

This topic describes how to create and manage dataflow tasks for a CPFS for Lingjun file system in the NAS console and how to view the causes of task failures.

Background information

Dataflow tasks created in the console are batch tasks. A batch task can import or export all files from one directory to another in a single run. You cannot initiate on-demand dataflows for individual files. To transfer data on a per-file basis (a streaming task), you must use OpenAPI operations. For streaming tasks, you must explicitly call the API to create a subtask for each specific file to trigger the data transfer. For more information, see Manage streaming tasks (OpenAPI).

Prerequisites

Create a task

  1. Log on to the NAS console.

  2. In the left-side navigation pane, choose File System > File System List.

  3. In the top navigation bar, select a region.

  4. On the File System List page, click the name of the target CPFS for Lingjun file system.

  5. On the details page of the file system, click Dataflow.

  6. On the Dataflow page, find the target dataflow and click Task Management in the Actions column.

  7. In the Task Management panel, click Create Job.

  8. In the Create Job panel, select the task type and configure the parameters.

    Import data

    • When a symbolic link is imported into a CPFS for Lingjun file system, it is converted into a regular file containing the link's target data, and the original link information is lost.

    • If an OSS bucket contains multiple versions of an object, only the latest version is copied.

    • File names and subdirectory names longer than 255 bytes are not supported.

    • Directory and file names cannot contain the following special characters. Otherwise, the task may produce unexpected results or fail.

      • Subdirectory or file names cannot be double periods (..).

      • Paths cannot contain backslashes (\) or consecutive backslashes (\\).

      • Subdirectory and file names cannot contain forward slashes (/).

    • If a file name conflicts with a subdirectory name, an object conflict occurs in the CPFS for Lingjun file system. Only one of the operations is guaranteed to succeed, and the other will fail.

    Parameter

    Description

    Conflict Resolution Policy

    The policy that specifies how to handle files with the same name in both the CPFS for Lingjun file system and the OSS bucket.

    • Skip Files with the Same Name (Default): Ignores files with the same name and does not synchronize them.

    • Keep the Latest File: Compares the modification time (mtime) of files with the same name and keeps the most recently updated version. Both OSS and CPFS for Lingjun use the modification time for comparison.

    • Overwrite Files with the Same Name: Overwrites the destination file with the version from the OSS bucket. Select Use the source file to overwrite the existing file with the same name on the destination. Make sure that you have backed up key data.

    Data Type

    Only the Data + Metadata type is supported. This option imports both the data blocks and metadata of files.

    Specify OSS Object Prefix Subdirectory

    Specifies the scope of the import task. Two modes are supported:

    • Import all files under this OSS directory: Imports all files under the specified subdirectory. Enter a relative path within the OSS Object Prefix that starts and ends with a forward slash (/).

    • Import files listed in a CSV file under this OSS directory: Imports only the files listed in a CSV file. After you select this mode, configure the CSV file list location, which is the OSS bucket directory where the CSV file is stored. The path must start and end with a forward slash (/), be 1 to 1,023 characters long, and can contain only exclamation points (!), hyphens (-), underscores (_), periods (.), and parentheses (()).

    CSV file requirements:

    1. Each CSV file must include a Name column that specifies the file paths. Other columns are ignored.

    2. A CSV file must have the .csv or .csv.* extension. Files with other extensions are ignored.

    3. Store the CSV files in the specified oss://bucket/*/dir/ path, and specify the same dir path when you configure the task.

    4. If a task uses multiple CSV files, store them in the same directory (dir).

    Note

    If the CPFS path that you configured when you created the dataflow does not exist, you can select If the CPFS directory you created does not exist, the system automatically creates a CPFS directory. to prevent import failures. Automatic directory creation is supported only by CPFS for Lingjun 2.6.0 and later.

    Export data

    • The source OSS bucket must have versioning enabled. Do not suspend versioning while the dataflow is active, or the export task will fail. For more information, see Introduction to versioning.

    • When a symbolic link is synchronized to OSS, the system does not synchronize the file it points to. Instead, the symbolic link itself becomes a regular, empty object in OSS.

    • A hard link synchronizes to OSS as a regular file.

    • Files of the Socket, Device, or Pipe type cannot be exported to an OSS bucket.

    • Directory paths longer than 1,023 characters are not supported.

    • Directory and file names cannot contain the following special characters. Otherwise, the task may produce unexpected results or fail.

      • Subdirectory or file names cannot be double periods (..).

      • Paths cannot contain backslashes (\) or consecutive backslashes (\\).

      • Subdirectory and file names cannot contain forward slashes (/).

    • CPFS for Lingjun exports file modification timestamps to OSS custom metadata named x-oss-meta-alihbr-sync-mtime. Do not delete or modify this metadata, or the file system timestamps will be incorrect.

    Parameter

    Description

    Conflict Resolution Policy

    The policy that specifies how to handle files with the same name in both the CPFS for Lingjun file system and the OSS bucket.

    • Skip Files with the Same Name (Default): Ignores files with the same name and does not synchronize them.

    • Keep the Latest File: Compares the modification time (mtime) of files with the same name and keeps the most recently updated version. Both OSS and CPFS for Lingjun use the modification time for comparison.

    • Overwrite Files with the Same Name: Overwrites the destination file with the version from the CPFS for Lingjun file system. Select Use the source file to overwrite the existing file with the same name on the destination. Make sure that you have backed up key data.

    Export Data Type

    Only the Data + Metadata type is supported. This option exports both the data blocks and metadata of files.

    Specify CPFS Subdirectory

    Specifies the scope of the export task. Two modes are supported:

    • Export all files under this CPFS directory: Exports all files under the specified subdirectory. Enter a relative path within the CPFS directory that starts and ends with a forward slash (/). For example, /cpfs/.

    • Export all files listed in a CSV file: Exports only the files listed in a CSV file. After you select this mode, configure the CSV file list location, which is the OSS bucket directory where the CSV file is stored. Note that in the export scenario, the CSV file is also stored in OSS. The path rules are the same as those in import mode.

    The CSV file requirements are the same as those in import mode: each CSV file must include a Name column that specifies the file paths in CPFS, use the .csv or .csv.* extension, and be stored together in the same directory if multiple files are used.

  9. Click OK.

Cancel a task

You can cancel a dataflow task that is running.

  1. On the Dataflow tab, find the target dataflow and click Task Management in the Actions column.

  2. In the Task Management panel, find the target task and click Cancel in the Actions column.

  3. In the confirmation message that appears, click OK.

Copy a task

You can copy a task to run it again.

  1. On the Dataflow tab, find the target dataflow and click Task Management in the Actions column.

  2. In the Task Management panel, find the target task. Then, click the image icon in the Actions column and select Copy.

  3. In the confirmation message that appears, click OK.

View the cause of a task failure

When a dataflow task fails, the system either displays the cause of the failure or generates a failure report. You can view the cause or download the report in the console to troubleshoot the issue.

  1. On the Dataflow tab, find the target dataflow and click Task Management in the Actions column.

  2. In the Task Management panel, find the target task. Hover the pointer over the icon next to the Failed status to view the cause or download the failure report.

    Note

    If no failure cause is displayed, no report is available, or you cannot resolve the issue based on the report, for assistance.

View task configuration and status

You can view the configuration and status of a batch task in the console. To view these details for a streaming task, call the DescribeDataFlowTasks API operation.

  1. On the Dataflow tab, find the target dataflow and click Task Management in the Actions column.

  2. In the Task Management panel, view the configuration and running status of the task.

    Parameter

    Description

    Task ID

    The unique identifier of the dataflow task.

    Type

    The type of the task. Valid values: Import or Export.

    Conflict resolution policy

    The policy for handling data with the same name that already exists in the destination file system. Valid values:

    • Skip Files with the Same Name (Default)

    • Keep the Latest File

    • Overwrite Files with the Same Name

    Source address

    The source, destination, and specific subdirectory paths for the data transfer.

    Destination address

    Source directory

    Total data scanned at source

    The amount of data scanned at the source, in bytes.

    Data synchronized

    The amount of data that has been synchronized, including skipped data, in bytes.

    Data transferred

    The actual amount of data transferred by the task, in bytes.

    Average speed

    The average transfer speed of the dataflow task. Unit: B/s.

    Time remaining

    The estimated time remaining until the task is complete, based on the current transfer speed.

    Time period

    The start and end times of the task.

    Progress

    The execution progress of the current task. Unit: %.

    Status

    The current status of the task. Valid values:

    • Pending: The dataflow task is created and is waiting in a queue.

    • Executing: The dataflow task is in progress.

    • Failed: The dataflow task failed.

    • Canceled: The dataflow task was canceled and did not complete.

    • Canceling: The dataflow task is being canceled.

    • Completed: The dataflow task is complete.

    File list path

    The OSS bucket directory that stores the CSV file list. This field is displayed only for tasks that use CSV file list mode. For other tasks, this field is empty.

View task reports

After a dataflow task is complete, the system generates a Skipped File Report, Failed File Report, or Successful File Report, depending on the outcome. You can download the report from the console to view detailed information about the files.

  1. On the Dataflow tab, find the target dataflow and click Task Management in the Actions column.

  2. In the Task Management panel, find the target task and click Download Task Report in the Actions column.

  3. Find the report that you want to download and click the image icon.

View task performance or configure alert rules

To view task performance metrics or configure alert rules, make sure that you use a CPFS for Lingjun file system of version 2.6.0 or later and have created a dataflow task.

  • To view key performance metrics for dataflow import or export tasks, such as read/write throughput, read/write IOPS, and metadata QPS, see View CPFS performance metrics.

  • To configure alert rules for specific monitoring metrics of dataflow tasks so that you can detect and handle metric exceptions in a timely manner, see Configure a basic alert rule.