Reputation: 1913
So I am testing each of the activities of the pipeline and I want to disable some of the activities in it. Essentially there is an activity of sending emails which I want to disable as I wanted to see the output of prior activities.
Offcourse I dont want to remove the email sending activity because it is in the prod environment and not developed by me.
Is there any way to disable it?
Upvotes: 19
Views: 19294
Reputation: 682
You can now deactivate one or more activities from a pipeline, and we skip them during validation and during pipeline run. Ref: https://learn.microsoft.com/en-us/azure/data-factory/deactivate-activity
Upvotes: 0
Reputation: 1
A dirty hack.
If you add a Wait task and drag lines from the On Fail condition to the tasks you want to disable this will stop that task running.
( you may need to change other flow lines that rely on that task )
Upvotes: 0
Reputation: 1
I usually copy the activities to another temp pipeline, make your desired debugging and recompose the pipeline in the end if applicable. Or you can clone the pipeline, delete the desired components and debug it.
Upvotes: 0
Reputation: 118
This builds on Martin Esteban Zurita's answer, if you need to prevent activities from the beginning or from within the middle of your pipeline running, without deleting them altogether:
You can temporarily change the order of the activities and make the ones you want to disable run at the end of the pipeline instead, (closing any gaps you may have created), then click the last activity you do want to run and click the breakpoint circle icon to prevent the "disabled" activities from running.
Then reinstate the order after testing/debugging.
Upvotes: 1
Reputation: 199
You could disable the trigger or delay the trigger execution to some date in the future.
Upvotes: 0
Reputation: 3209
You cannot disable one, but what you want to do is possible with the debug option in the editor. Just click on the red circle above any activity and run the debugger, it will run until that activity is complete and stop, allowing you to see the output of those prior to that.
Hope this helped!
Upvotes: 23