https://prefect.io logo
Title
m

Madison Schott

06/30/2021, 5:15 PM
Hi all, I keep getting this error when trying to set up my Fivetran task using the class created in the documentation:
azure_sql_task = FivetranSyncTask.run(
  File "/usr/local/lib/python3.9/site-packages/prefect/utilities/tasks.py", line 453, in method
    kwargs.setdefault(attr, getattr(self, attr))
AttributeError: 'str' object has no attribute 'connector_id'
azure_sql_task = FivetranSyncTask.run(
    'abcdef',
    'abcdef',
    connector_id='hello',
    poll_status_every_n_seconds=15)
That's what I currently have and this is how I imported the class
from prefect.tasks.fivetran.fivetran import FivetranSyncTask
k

Kevin Kho

06/30/2021, 5:21 PM
Can you try
azure_sql_task = FivetranSyncTask()(
    'abcdef',
    'abcdef',
    connector_id='hello',
    poll_status_every_n_seconds=15)
Assuming it’s inside your flow