MaxCompute Migration Service (MMS) allows you to schedule the creation of migration jobs on an hourly or daily basis. This feature automates incremental data migration and makes data synchronization more efficient. This document describes scheduling rules and how to create and manage scheduled tasks.
Scheduling rules
Scheduling mechanism
Scheduling frequency: You can schedule jobs to run daily or hourly.
Job creation: At the scheduled time, MMS automatically creates a migration job based on the task configuration.
Incremental migration: The resulting job migrates only tables and partitions whose status is not "Completed".
Scheduling constraints
During a scheduled run, if any tables or partitions in the scheduled task have an associated job that is pending or running, the system does not create a new migration job. For example, this can happen if the migration job from the previous run has not yet finished. For more details, review the scheduling log.
Create a scheduled task
Before you begin, ensure you have configured a data source.
Log in to the MaxCompute console and select a region in the upper-left corner.
In the left-side navigation pane, choose .
On the Migration Service page, click the Data Source tab.
In the Actions column for the target data source, click Migration Management to view the databases.
In the Actions column for the target database, click Full DB Migrate or partial migration, and then configure the parameters.
If you click partial migration, you are redirected to the database details page. On the Table List and Partitions tabs, select the tables or partitions to migrate, and then click New Migration Job.
The job configuration parameters are the same as those for creating a migration job. Select Enable Scheduled Migration, and then configure the scheduling parameters: Period and Scheduled Time.
Parameter
Required
Description
Period
Yes
Select a scheduling period:
Daily: Runs once per day.
Hourly: Runs once per hour.
Scheduled Time
Yes
If the period is Daily, specify the time in
HH:mmformat. Example:02:00.If the period is Hourly, specify the minute of the hour in
mmformat. For example,30means the job runs at 30 minutes past every hour.
Click Submit. You can then view and manage the task on the Scheduled Tasks tab.
By default, a scheduled task is enabled upon creation. The system automatically submits a migration job at the next scheduled time.
Manage scheduled tasks
After you create a scheduled task, go to the Scheduled Tasks tab to manage it.
Select a data source to view all scheduled tasks created for it.
You can search and filter tasks by the following criteria: Scheduled Task Name (supports fuzzy search), Source Database Name, Source Table Name, and Status.
View associated jobs
Find the target scheduled task in the list.
In the Actions column, click Associated Jobs.
You are redirected to the Migration Jobs tab, which displays all historical migration jobs created by this scheduled task.
View scheduling logs
Find the target scheduled task in the list.
In the Actions column, click Scheduling Logs.
The scheduling log panel opens on the right and displays the scheduling history, including:
Schedule Time
Job Creation Status
Failure Reason (if any)
You can use the scheduling log to troubleshoot why a scheduled task did not create a migration job as expected.
Edit a scheduled task
Find the target scheduled task in the list.
In the Actions column, click Edit.
You are redirected to the details page of the scheduled task.
On the details page, you can:
View the complete configuration of the scheduled task.
Edit the Period and Scheduled Time. Other configuration parameters cannot be modified.
Click Confirm to save the changes.
Enable or disable a scheduled task
Disable a scheduled task
Find the target scheduled task in the list.
In the Status column, toggle the switch to the Off position.
Disabling a task prevents it from creating new migration jobs; it does not affect jobs that have already been created.
Enable a scheduled task
Find the target scheduled task in the list.
In the Status column, toggle the switch to the On position.
The task resumes scheduling and automatically creates a migration job at the next scheduled time.
Delete a scheduled task
Find the target scheduled task in the list.
In the Actions column, click Delete.
In the confirmation dialog box that appears, click Confirm.
FAQ
Why was no migration job created?
Possible causes:
The previous job has not completed: If the migration job from the previous run is still running, the system will not create a new one.
Solution: This event is recorded in the scheduling log. No action is required. Wait for the previous job to complete.
The scheduled task is disabled: The status switch for the task is in the Off position.
Solution: In the list of scheduled tasks, enable the status switch for the task.
No incremental data is available: The migration status of all tables and partitions is already Completed.
Solution: This event is recorded in the scheduling log. No action is required. The scheduled task will automatically create a migration job when new data becomes available.
System error: The MMS scheduling failed.
Solution: Check the scheduling log to identify the specific reason for the failure and contact technical support.
How to change the execution time?
In the Scheduled Tasks list, click Edit in the Actions column for the target task.
Modify the Scheduled Time parameter.
Click Save.
Can I modify the migration scope?
No. After a scheduled task is created, you cannot modify configuration parameters such as the data source, destination database, or the migration scope of tables and partitions.
To adjust the migration scope, follow these steps:
Delete the original scheduled task.
Create a new scheduled task with the updated migration scope.