Overview
If you want to periodically run a MaxCompute job, you can use DataStudio in the DataWorks console to develop the job that runs on an auto triggered node and configure related parameters for the node. The related parameters include time properties and scheduling dependencies. Then, you can submit the MaxCompute job to DataWorks Operation Center for periodic scheduling. This topic describes how to develop a periodically scheduled job in the DataWorks console.
Development workflow

- Different types of jobs can run on different types of nodes, such as ODPS SQL nodes, ODPS Spark nodes, and PyODPS nodes.
- In the DataWorks console, you can create MaxCompute tables, register MaxCompute functions with DataWorks, and create MaxCompute resources. This way, job development efficiency is improved.
- You can also use general nodes in the DataWorks console to implement complex job logic, such as loop and traversing.
Billing
DataStudio and Operation Center let you schedule MaxCompute data synchronization and processing tasks periodically. These features incur the following fees.
1. DataWorks charges
These charges appear on your DataWorks bill. For more information about DataWorks billing, see Billable items of DataWorks.
Charge | Description |
DataWorks edition fee | Before you can develop tasks, you must activate DataWorks. Standard Edition, Professional Edition, and Enterprise Edition require a paid subscription. |
Scheduling resource fee | Tasks require scheduling resources to run on a schedule. You can use a serverless resource group (recommended) or an old-version exclusive resource group. Note A serverless resource group can be used for both task scheduling and data synchronization. |
Synchronization resource fee | Data synchronization tasks require dedicated synchronization resources in addition to scheduling resources. You can use a serverless resource group (recommended) or an old-version exclusive resource group for data integration. |
No scheduling fees are charged for tasks that are run using the Run or Run with Parameters feature on the DataStudio page.
No scheduling fees are charged for tasks that fail to run or are run as dry runs.
For information about how DataWorks dispatches scheduling tasks to help you better understand the billing details, see How DataWorks dispatches scheduling tasks.
2. Non-DataWorks-related fees
These charges do not appear on your DataWorks bill. You may incur the following charges when developing and running tasks:
Fees from other services follow their own billing rules. For details, see each service's billing documentation. For MaxCompute billing, see Billable items of MaxCompute.
Fee | Description |
Database fees | Reading from or writing to upstream and downstream databases during data synchronization may incur database fees. |
Computing and storage fees | Running a task on a compute engine may incur computing and storage fees. For example, a MaxCompute SQL task that creates a table and writes data incurs MaxCompute computing and storage fees. |
Network service fees | Network connections between DataWorks and related services may incur fees. For example, using Express Connect, Internet Shared Bandwidth, or Elastic IP Address (EIP) incurs fees from the corresponding services. |
Permission management
DataWorks supports product-level and module-level permission management, with visual permission requests and approvals for MaxCompute data sources. The following sections describe permission management in detail.
1. Data access and permission management
You can query MaxCompute table data by using a MaxCompute SQL node or an ad hoc query node. A workspace in basic mode does not support fine-grained permission management or isolation between development and production environments. The following example uses a workspace in standard mode.
Default permissions
After a RAM user is added to a workspace, their default data access permissions are:
Permission type
Description
MaxCompute development project permissions
DataWorks maps predefined workspace-level roles to MaxCompute data source roles in the development environment. A RAM user with a workspace role inherits the mapped data source role permissions. By default, the RAM user has permissions on the development project but not on the production project.
MaxCompute production project permissions
Only RAM users that are granted the scheduling access identity have broad permissions on the MaxCompute project in the production environment. Other RAM users do not have permissions on the production project. To operate on production tables, go to Security Center to request permissions.
DataWorks provides a default approval process, and also allows administrators to customize approval workflows.
For more information about MaxCompute data access control, see MaxCompute data permission management.
Data access behavior
MaxCompute supports cross-project table queries. In DataStudio, you can query production data across projects by specifying the project name. The following table describes cross-project table access and the accounts used.
NoteYou can view the data sources created for different environments and the execution accounts configured for them in the workspace's data source information. For more information, see Associate a MaxCompute compute engine with a workspace.
In a DataWorks workspace in standard mode, tasks in the development environment are run using the personal identity of a task executor by default. Tasks in the production environment are run by using a specific Alibaba Cloud account, which is the scheduling access identity. For more information, see Associate a MaxCompute compute engine with a workspace.
Code example
Execution in development
Execution in production
Access a development table in a development project:
select col1 from projectname_dev.tablename;The task executor's personal Alibaba Cloud account accesses the development table.
If a RAM user runs the task, the RAM user's personal account is used.
If the primary Alibaba Cloud account runs the task, that account is used.
The scheduling access identity accesses the development table.
Access a production table in a production project:
select col1 from projectname.tablename;The task executor's personal Alibaba Cloud account accesses the production table.
NoteBy default, personal accounts do not have permission to access production tables due to security controls. You must go to Security Center to request permission. DataWorks provides a default approval process and also supports custom approval workflows.
The scheduling access identity accesses the production table.
Access a table in the current environment (for example, a development table in the development environment):
select col1 from tablename;When run in the development environment, the task uses the task executor's personal Alibaba Cloud account to access the target table in the development data source.
When run in the production environment, the task uses the scheduling access identity to access the target table in the production data source.
2. Feature module permission management
Before starting data development, assign workspace roles to users to grant them appropriate operation permissions. The following permission models are available:
The RAM policy-based authorization model manages permissions on DataWorks feature modules (for example, denying access to Data Map) and console operations (for example, allowing users to delete workspaces).
The RBAC model manages permissions on workspace-level modules (for example, allowing users to access DataStudio for development) and global modules (for example, denying access to the Data Security Guard module).
