Share via

ADF Until activity slow to terminate

Jez Walters 70 Reputation points
2024-07-25T14:58:37.43+00:00

I have a number of ADF pipelines that I'm using to download historic transactional data from various external REST APIs. Because of the data volumes involved, the pipelines I've created run for many hours.

The API pagination mechanisms are such that I can't use the pagination rules built in to the Copy activity. I've therefore had to put a Copy activity (with no pagination rules) into a suitably crafted loop using an Until activity.

When I run these pipelines I can see that the Until activity isn't completing in a timely manner, despite the exit criteria being met and no further inner activities being executed. The delay varies from 20-30 minutes up to as much as several hours.

At the risk of stating the obvious, I expect pipelines to complete as soon as their work is done but this isn't what's happening. I can see that this issue was raised more than a year ago, but was never resolved.

Azure Data Factory
Azure Data Factory

An Azure service for ingesting, preparing, and transforming data at scale.

{count} vote

1 answer

Sort by: Most helpful
  1. Amira Bedhiafi 41,131 Reputation points Volunteer Moderator
    2024-07-25T17:24:58.9633333+00:00

    You may need to verify who is the Until activity configuration is done the exit criteria are correctly set. You can enable detailed logging and monitoring to identify where delays occur and verify that inner activities are optimized.

    Investigate the performance of the external REST APIs, as they might be causing the delays.

    Review the timeout settings for the Until activity and consider breaking down the process into smaller, more manageable chunks.

    If the problem persists, contact Microsoft support for further assistance.


Your answer

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