luisvenezian
luisvenezian

Reputation: 501

Is there a way to restart an Replication Task in DMS without recreating the task itself?

I'm getting this error when trying to restart my DMS Replication TASK with start_replication_task Boto3 method:

An error occurred (InvalidParameterCombinationException) when calling 
the StartReplicationTask operation: 
Start Type : START_REPLICATION, valid only for tasks running for the first time

To solve that i'm creating a new task every execution, can i restart that with the same task instead?

Upvotes: 1

Views: 4005

Answers (1)

Mina Fawzy
Mina Fawzy

Reputation: 21452

you may need to set StartReplicationTaskType to reload-target if you want to restart the task from beginning or resume-processing if you already start task and you want to resume it.

start-replication valid only after you create the task and want to start it

StartReplicationTaskType --> Valid Values: start-replication | resume-processing | reload-target

Ref: https://docs.aws.amazon.com/dms/latest/APIReference/API_StartReplicationTask.html#DMS-StartReplicationTask-request-StartReplicationTaskType

Upvotes: 5

Related Questions