Intelligent baselines detect exceptions that prevent tasks from completing on time and send early warnings, ensuring important data is produced on schedule even in complex dependency scenarios. This reduces configuration costs, prevents unnecessary alerts, and automatically monitors all critical tasks.
Use cases
-
Manage task priorities.
When resources are limited, resource preemption may occur. Add important tasks to a high-priority baseline so they receive resources first.
-
Calculate the estimated completion time of a task.
Add a task to a baseline, and DataWorks calculates its estimated daily or hourly completion time based on resource availability and ancestor task status.
-
Ensure tasks finish before their committed time.
Add a task to a baseline and set a committed time. If the system predicts the task will miss the committed time, or an ancestor task fails or slows down, it sends an alert so you can resolve the issue promptly.
Concepts
-
Baseline: A collection of important tasks with a committed completion time. The system monitors execution status and triggers alerts when tasks risk missing that deadline.
-
committed time: The deadline by which a task must complete successfully, guaranteeing that its output data is ready for downstream consumption. To allow your operations team time to handle exceptions, set an Alert Margin Threshold for the baseline. The system then uses the formula
committed time - alert marginto determine the alert time, the threshold for triggering an alert. -
Baseline task: A task that is added to a baseline.
-
Baseline instance: A per-run snapshot used to calculate the estimated completion time for each task. A baseline instance has one of the following statuses: Safe, Warning, or Breached.
-
Safe:
Estimated completion time < Alert time. -
Warning:
Alert time < Estimated completion time < Committed time. -
Breached:
Estimated completion time > Committed time.
-
-
Key path: The path with the longest execution time among all paths that affect a baseline task.
-
Event: Generated when a baseline task or its ancestor fails, or when a key-path task slows down. Events may delay baseline task completion.
How it works
When you add tasks to a baseline, DataWorks allocates resources based on baseline priority and determines the monitoring scope from task dependencies. Alerts are triggered by actual task execution status within that scope.
The monitoring scope is determined based on a baseline task K.
-
Ancestor nodes of the baseline task: All nodes that affect the output of task K are included in the monitoring scope:

-
Descendant nodes of the baseline task: These are not in the monitoring scope:

-
Key path: The longest path among all paths that affect task K:

-
Create a baseline:
-
Specify task K to be added to the baseline.
-
Set the baseline priority and alert policy parameters.
-
-
A baseline alert or an event alert is triggered based on the actual execution status of tasks within the monitoring scope.
The intelligent baseline provides the following capabilities:
-
Create and manage baselines.
The Baselines page allows you to create and manage baselines:
-
Add tasks that require major event support to a baseline, set the committed time, and configure alert policies (method and recipients). The system monitors tasks and sends alerts based on these settings.
-
Set a baseline priority to control task execution order. Higher-priority baselines receive resources first when scheduling resources are limited.
Note-
This priority is mapped to the priority of a MaxCompute computing task if the following two conditions are met:
-
The priority feature is enabled for the MaxCompute project.
-
The MaxCompute project uses subscription computing resources.
-
-
MaxCompute job priority = 9 - DataWorks baseline priority.
-
-
-
Determine the monitoring scope.
DataWorks determines the monitoring scope based on task dependencies and monitors all tasks that might affect baseline data output.Core logic: Monitoring scope.
-
Trigger and send alerts
-
Baseline alerts.
DataWorks automatically triggers alerts based on the configured alert policy and actual task execution status, sending alert messages to specified recipients in real time. If the system predicts a baseline task cannot complete before the committed time, it sends a baseline alert. Core logic: Baseline alerts.
-
Event alerts.
Once the monitoring scope is determined, if a baseline task or its upstream tasks fail, or if a key-path task slows down, the system generates an event and sends an alert. View events on the DataWorks Events page. Event management.
-
Billing
-
Number of baseline instances: All enabled baselines generate baseline instances. DataWorks charges based on instances generated by 23:59 each day. Billing of intelligent baseline instances.
-
Number of alert text messages and phone calls: Baseline alerts incur fees for text messages and phone calls. Billing of alert text messages and phone calls.
Limits
Only DataWorks Standard Edition and later editions support intelligent baselines. Upgrade if you use an earlier edition. Features of different DataWorks editions.
Core logic: Monitoring scope
The intelligent baseline monitors upstream tasks that affect data output, not all upstream and downstream tasks. The monitoring scope is:
-
Upstream tasks: Tasks that affect the baseline task's data output are monitored.
-
Downstream tasks: Not monitored. No alert is triggered if a downstream task of the baseline task or a task on another ancestor branch fails.
As shown in the preceding figure, assume there are six task nodes. Tasks D and E are baseline tasks. Tasks A and B affect their data output, so A, B, D, and E are all monitored. If any of these tasks fails or slows down, the intelligent baseline detects it. Tasks C and F are outside the monitoring scope.
Core logic: Baseline alerts
You can add important tasks to a baseline and set the Committed Completion Time and Alert Margin Threshold. After that:
-
DataWorks uses the formula
committed time - alert marginto calculate the Alerting Time. Then, based on the historical average runtime of tasks within the monitoring scope, DataWorks uses the Baseline Instances to derive the latest completion and start times for each task in the scope. -
During runtime, if a task's status suggests that a baseline task will not be completed by the Alerting Time, DataWorks triggers a baseline alert.
Core logic: Event alerts
When a monitored task becomes abnormal, the system generates an event and triggers an alert. Abnormal conditions include:
-
Error: The task run fails.
-
Slow: The task's current runtime significantly exceeds its historical average.
-
A slowdown event triggers when a task's runtime exceeds 30 minutes and is at least 15 minutes above its historical average.
-
If the same task first slows down and then fails, two events are generated.
View event details on the Event Management page.
Core logic: Key path and key instances
Task dependencies on a baseline can be complex. DataWorks provides a Gantt chart to help you locate the key path and key instances blocking data output. The key path is the longest-running path among all paths that affect a baseline task's output.
Example
-
Scenario: The current time is 6:40, and task F is still running.
-
Baseline warning:
YYYY-MM-DD HH:mm:ss
Baseline XX warning, business time XX, margin: -10 min...
-
Event alert:
YYYY-MM-DD HH:mm:ss
Event reminder, business time XX, task XX, status: Delayed...
A Gantt chart shows the key execution path of a target task. The key path and exception catch time for the preceding example: