Azure / azure-sdk-for-python

This repository is for active development of the Azure SDK for Python. For consumers of the SDK we recommend visiting our public developer docs at https://learn.microsoft.com/python/azure/ or our versioned developer docs at https://azure.github.io/azure-sdk-for-python.
MIT License
4.53k stars 2.76k forks source link

How to get next Page of ADF Pipeline run details using continuation_token in Azure Data Factory #21879

Closed MarioPrietoMatica closed 2 years ago

MarioPrietoMatica commented 2 years ago

I am using

adf_client.pipeline_runs.query_by_factory(resourceGroupName, factoryName, filter_parameters)

method of azure.mgmt.datafactory.DataFactoryManagementClient package to fetch ADF Pipeline Run details.

The response of above function returns 100 pipeline run records at once. Along with the response, it returns continuation_token which, I believe, is supposed to be used to fetch next set/page of records.

I am not sure which function to be used for this. I tried using azure.mgmt.datafactory.models.PipelineRun() function (trial and error) to see if that satisfies the requirement. Unfortunately, it doesn't. MS Documentation is also very abstract to understand.

So, which function in Azure's Python SDK can be used to fetch next page of run records?


Document Details

Do not edit this section. It is required for docs.microsoft.com ➟ GitHub issue linking.

xiangyan99 commented 2 years ago

Thanks for the feedback, we’ll investigate asap.

PramodValavala-MSFT commented 2 years ago

@MarioPrietoMatica The RunFilterParameters has the continuation_token parameter to be set when calling this method, the second time.

PramodValavala-MSFT commented 2 years ago

@MarioPrietoMatica Just following up here... Hope my previous comment clears things up.

ghost commented 2 years ago

Hi, we're sending this friendly reminder because we haven't heard back from you in a while. We need more information about this issue to help address it. Please be sure to give us your input within the next 7 days. If we don't hear back from you within 14 days of this comment the issue will be automatically closed. Thank you!