How to debug an ADF pipeline runnning indefinitely?

Samyak Jain 41 Reputation points
2021-12-13T07:56:22.057+00:00

I followed the official tutorial on how to run a python script using ADF: https://learn.microsoft.com/en-us/azure/batch/tutorial-run-python-batch-azure-data-factory but the pipeline is running indefinitely. I am unable to find the cause of this issue.
I need help with the same.

Azure Blob Storage
Azure Blob Storage
An Azure service that stores unstructured data in the cloud as blobs.
2,428 questions
Azure Batch
Azure Batch
An Azure service that provides cloud-scale job scheduling and compute management.
301 questions
Azure Data Factory
Azure Data Factory
An Azure service for ingesting, preparing, and transforming data at scale.
9,533 questions
0 comments No comments
{count} votes

Accepted answer
  1. ShaikMaheer-MSFT 37,896 Reputation points Microsoft Employee
    2021-12-13T13:56:37.35+00:00

    Hi @Samyak Jain ,

    Thank you for posting query in Microsoft Q&A Platform.

    Reason behind running pipeline indefinitely is due to timeout value set inside Custom activity. By default custom activity will have timeout set as 7 days.

    ADF may not getting response back from Batch services and hence we may be ending up seeing pipeline running for long time.

    Could you please try below options and see if that helps.

    • Make sure your Azure Batch linked service test connection is successful.
    • Monitor your Azure Batch log files. Click here to know more about it.

    Hope this will helps. Please let us know if any further queries. Thank you.

    -------------

    Please consider hitting Accept Answer button. Accepted answers helps community as well.


1 additional answer

Sort by: Most helpful
  1. Samyak Jain 41 Reputation points
    2021-12-22T07:18:18.03+00:00

    Hi @ShaikMaheer-MSFT ,

    I think I found the issue here. I am following the tutorial https://learn.microsoft.com/en-us/azure/batch/tutorial-run-python-batch-azure-data-factory with a free account. Upon checking the quota, I found out that FSv2 VM's(as suggested to be used in the tutorial) aren't free to use for free accounts.
    I feel that was what caused the job to run indefinitely as when I tried the same with a simpler machine, I was able to run the job.
    Please let me know your views on the same.