All Products
Search
Document Center

Quick Audience:Scheduling Task

Last Updated:Jun 16, 2026

After you configure the mapping for the imported table, execute a scheduling task based on the computing source to perform ID Mapping calculation. After scheduling is complete, the calculation results are stored in the analysis source.

Three methods are available to initiate scheduling:

  • Manual scheduling: After the underlying table is updated, manually initiate scheduling.

  • Periodic scheduling: Scheduling is automatically initiated on a daily or hourly basis, applicable when the underlying table is periodically updated.

  • Triggered scheduling: Send a scheduling request through an API to initiate scheduling. This method is applicable when you want to trigger scheduling after the processing task of the underlying table is completed.

Note

Scheduling tasks imported through APIs are created by API Synchronization. The scheduling method is periodic scheduling or manual scheduling. You can view the execution records and manually schedule them. However, you cannot edit or remove these tasks.

Create a job

Note

Each scheduling task recalculates the IDs of all users in the included data tables. To avoid frequent consumption of computing resources, we recommend that you create a single task to schedule all data tables together.

Create a manual scheduling task

Procedure

  1. In the left-side navigation pane, choose Configuration Management > Data Import > Data Import > Scheduling Task. image

  2. In the upper-right corner, click Create Scheduling Task.

  3. In the dialog box that appears, enter a task name and select the data table to be scheduled and imported. You can select multiple or all data tables. 11111

  4. Set the Scheduling Frequency parameter to Manual Scheduling.

  5. Click Save.

The scheduling task is added to the task list. If you want to schedule the task, click the 3icon to manually start scheduling.

Create a periodic scheduling task

Procedure

  1. In the left-side navigation pane, choose Configuration Management > Data Import > Data Import > Scheduling Task. image

  2. In the upper-right corner, click Create Scheduling Task.

  3. In the dialog box that appears, enter a task name and select the data table to be scheduled and imported. You can select multiple or all data tables. 2222

  4. Set Scheduling Frequency to Daily Scheduling or Hourly Scheduling, and set the execution cycle.

  5. Click Save.

The scheduling task is added to the task list and automatically scheduled at the specified periodic time.

Create a triggered scheduling task

Procedure

  1. Choose Workspace> Configuration Management > Data Import > Data Import > Scheduling Tasks. image

  2. In the upper-right corner, click Create Scheduling Task.

  3. In the dialog box that appears, enter a task name and select the data table to be scheduled and imported. You can select multiple or all data tables. 33333

  4. If you set the Scheduling Frequency parameter to Trigger Scheduling, a URL that contains a token is generated for each table. Click Copy to save the URL.

  5. Click Save.

The scheduling task is added to the task list. When you need to schedule, you can use these URLs to initiate scheduling. The specific rules are as follows:

  • When you use Dataphin, DataWorks, or other ETL tools to process underlying tables, you can write code or call this operation through webhooks.

    For more information about sample scripts for Dataphin and DataWorks, see Appendix: Sample scripts for triggering scheduling.

  • If a scheduling task contains multiple tables, each table must be triggered once through its corresponding URL. The scheduling task executes only after all tables are triggered.

    In the task list, click Edit to view the trigger status of each table. A table that has been triggered through a URL is displayed as Triggered. If some tables show "Not Triggered", send a scheduling request through the corresponding URL. Scheduling starts when all tables show "Triggered".

  • Any scheduling request received while a task is already being executed is ignored.

Modify a scheduling task

Click Edit to modify a scheduling task. The changes take effect from the next scheduling execution.

Manual scheduling

You can manually initiate scheduling for any task type, including periodic scheduling and triggered scheduling tasks.

Click Manual Scheduling to manually start scheduling.

View results

After a scheduled task has been executed at least once, the list displays the status of the last execution (succeeded or failed).

Note

If the execution fails, hover over Execution Failed to view the failure cause and troubleshoot the issue.

image

Click Execution Records to view the execution history and status of each execution.

Click the 0icon to expand the execution status of all tables in a scheduling run. image

Remove a scheduling task

Choose image /> Remove. After you confirm the deletion, the scheduling task is removed, but the data obtained by previous scheduling runs is retained.

Appendix: Sample script for triggering scheduling

The following sample scripts show how to trigger an import scheduling task in Dataphin and DataWorks.

Dataphin

In Dataphin, perform the following steps to trigger an import scheduling task by using a Shell periodic task:

  1. Add a sandbox whitelist and add all the URLs that are generated when you Create A Triggered Scheduling Task as the IP addresses that you want to access. For more information, see Add project members.

  2. Create a shell task. For more information, see Create a Shell task. Select Periodic Task as the scheduling type.

    If the same scheduling task contains multiple tables, multiple trigger URLs are generated, and multiple Shell periodic tasks must be created accordingly.

    An example of the Shell script is as follows:

    #!/bin/bash
    # {Trigger URL} Replace with the trigger URL.
    QA_TRIGGER_URL="{Trigger URL}"
    echo $(date "+%Y-%m-%d %H:%M:%S") "QuickAudience Trigger scheduling Start."
    echo $(date "+%Y-%m-%d %H:%M:%S") "QuickAudience Trigger scheduling Url:" $QA_TRIGGER_URL
    result=$(curl -k -s ${QA_TRIGGER_URL})
    if [ !  -n "$result" ]; then  
      echo $(date "+%Y-%m-%d %H:%M:%S") "QuickAudience Trigger Failed"  $result
    else  
      echo $(date "+%Y-%m-%d %H:%M:%S") "QuickAudience Trigger scheduling Response:" $result
      echo $(date "+%Y-%m-%d %H:%M:%S") "QuickAudience Trigger scheduling End."
    fi
  3. Optional. You can click Execute Shell Task to test whether the import scheduling task can be triggered and check whether the output log contains the following success information:

    QuickAudience Trigger scheduling Response: {"data":"true","errorCode":null,"errorDesc":null,"exStack":null,"opers":[],"solution":null,"success":true,"traceId":"0bc1409e16667784903588235e2ef1"}
  4. Configure the scheduling of the Shell task. For more information, see Configure basic task information.

    Click Create Upstream Dependency to associate the upstream dependency that is used to generate data in the current table. When the upstream dependency has produced data and the configured scheduling time is reached, Shell task scheduling is triggered.

    If all Shell tasks corresponding to the URL of the import scheduling task are triggered, the import scheduling task is triggered.

DataWorks

DataWorks allows you to trigger an import scheduling task through a Shell node or a PyODPS 3 node.

Create a Shell node

To trigger an import scheduling task through a Shell node in DataWorks, perform the following steps:

  1. Shell nodes need to use exclusive resources for scheduling groups for scheduling. For more information, see Use exclusive resource groups for scheduling.

    Otherwise, the Shell node fails to be scheduled and the following error message is displayed:

    curl: (1) Protocol https not supported or disabled in libcurl
  2. Create a Shell node. For more information, see Shell node.

    If the same scheduling task contains multiple tables, multiple trigger URLs are generated and multiple Shell nodes must be created accordingly.

    An example of the Shell script is as follows:

    #!/bin/bash
    # {Trigger URL} Replace with the trigger URL.
    QA_TRIGGER_URL="{Trigger URL}"
    echo $(date "+%Y-%m-%d %H:%M:%S") "QuickAudience Trigger scheduling Start."
    echo $(date "+%Y-%m-%d %H:%M:%S") "QuickAudience Trigger scheduling Url:" $QA_TRIGGER_URL
    result=$(curl -k -s ${QA_TRIGGER_URL})
    if [ !  -n "$result" ]; then  
      echo $(date "+%Y-%m-%d %H:%M:%S") "QuickAudience Trigger Failed"  $result
    else  
      echo $(date "+%Y-%m-%d %H:%M:%S") "QuickAudience Trigger scheduling Response:" $result
      echo $(date "+%Y-%m-%d %H:%M:%S") "QuickAudience Trigger scheduling End."
    fi   
  3. Optional. You can click Execute Shell to test whether the import scheduling task is triggered and check whether the output log contains the following success information:

    QuickAudience Trigger scheduling Response: {"data":"true","errorCode":null,"errorDesc":null,"exStack":null,"opers":[],"solution":null,"success":true,"traceId":"0bc1409e16667784903588235e2ef1"}
  4. Configure scheduling for the Shell node. For more information, see Configure scheduling dependencies.

    As shown in the following figure, create an upstream dependency and associate it with the upstream node that produces data in the current data table. When the upstream node has produced data and the configured scheduling time is reached, the Shell node is scheduled. image

    If all the Shell nodes corresponding to the URL of the import scheduling task are triggered, the import scheduling task is triggered.

PyODPS 3 node

In DataWorks, use a PyODPS 3 node to trigger an import scheduling task:

  1. PyODPS 3 nodes can be scheduled using public resource groups or exclusive resources for scheduling groups.

  2. Create a PyODPS 3 node. For more information, see PyODPS 3 node.

    If the same scheduling task contains multiple tables, multiple trigger URLs are generated and multiple PyODPS 3 nodes must be created accordingly.

    The Python 3 script example is as follows:

    import requests
    from datetime import datetime
    
    # {Address that triggers scheduling} Replace with the address that triggers scheduling.
    QA_TRIGGER_URL = "{Address that triggers scheduling}"
    print(datetime.now().strftime("%Y-%m-%d %H:%M:%S") + " QuickAudience Trigger scheduling Start.")
    print(datetime.now().strftime("%Y-%m-%d %H:%M:%S") + " QuickAudience Trigger scheduling Url:" + QA_TRIGGER_URL)
    response = requests.get(QA_TRIGGER_URL)
    print(datetime.now().strftime("%Y-%m-%d %H:%M:%S") + " QuickAudience Trigger scheduling Response:" + response.text)
    print(datetime.now().strftime("%Y-%m-%d %H:%M:%S") + " QuickAudience Trigger scheduling End.")
  3. Optional. You can click Run PyODPS 3 to test whether the import scheduling task is triggered and check whether the output log contains the following success information:

    QuickAudience Trigger scheduling Response: {"data":"true","errorCode":null,"errorDesc":null,"exStack":null,"opers":[],"solution":null,"success":true,"traceId":"0bc1409e16667784903588235e2ef1"}
  4. Configure scheduling for PyODPS 3 nodes. For more information, see Configure scheduling dependencies.

    As shown in the following figure, create an upstream dependency and associate it with the upstream node that produces data in the current data table. When the upstream node has produced data and reaches the configured scheduling time, PyODPS 3 node scheduling is triggered. image

    If all PyODPS 3 nodes corresponding to the URL of the import scheduling task are triggered, the import scheduling task is triggered.