PrefectHQ / prefect

Prefect is a workflow orchestration framework for building resilient data pipelines in Python.
https://prefect.io
Apache License 2.0
15.75k stars 1.54k forks source link

Polling_Interval attribute not initialized in Azure Datafactory PipelineRun Object #6019

Closed masonmenges closed 1 year ago

masonmenges commented 2 years ago

Description

The Azure Datafactory PipelineRun Class object includes the polling interval in the parameters for the object located here but does not assign the value between lines 280 and 286 resulting in an error when calling the run() method unless the polling_interval is passed as an argument in the run() method though it is an optional argument.

Expected Behavior

The init method for a PipelineRun object properly initializes the polling_interval attribute so it can be reused with other PipelineRun object methods.

Reproduction

from prefect.tasks.azure.datafactory import PipelineRun

pipeline_run = PipelineRun(
datafactory_name=adf_name,
resource_group_name=rg_name,
pipeline_name=pipeline_name,
azure_credentials_secret=az_credentials,
parameters=params,
polling_interval=10)
pipeline_run.run()

Environment

github-actions[bot] commented 1 year ago

This issue is stale because it has been open 30 days with no activity. To keep this issue open remove stale label or comment.