Stop a copy activity while it is in progress

Prith 1 Reputation point
2022-07-11T12:05:03.253+00:00

I have the following requirements in Azure Data Factory. Could somebody tell me if it is possible in ADF -

  1. Stop/Fail a copy activity while it is in progress (multiple files in source). And also Stop/Fail the whole ADF pipeline.
  2. Restart the pipeline. The copy activity should resume from the point of failure (It should only copy the files which are pending to be copied.)

I actually have a dashboard which will have Start and Stop buttons. Start Button will start a pipeline. Stop will stop the pipeline. Client wants control over large copy tasks from HDFS folders. A hdfs file copy task from the dash board should have the ability to Pause and Resume.

Can somebody help me in this?

Azure Data Factory
Azure Data Factory
An Azure service for ingesting, preparing, and transforming data at scale.
11,624 questions
{count} votes

1 answer

Sort by: Most helpful
  1. Nandan Hegde 36,146 Reputation points MVP Volunteer Moderator
    2022-07-11T13:20:05.817+00:00

    Hey,
    Based on my understanding below are the inputs:

    1. It is not possible to juts cancel the Copy activity but we can cancel the Pipeline run via REST API:
      https://learn.microsoft.com/en-us/rest/api/datafactory/pipeline-runs/cancel

    2) For the pipeline to resume from the point of failure, best way would be to archive the file after successful copy activity so only the files that needs to be copied remains in the source location.

    @ShaikMaheer-MSFT @KranthiPakala-MSFT : please provide your thoughts on the same


Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.