Cormac
12/08/2023, 2:05 PMprefect-dbt library, following examples at https://prefecthq.github.io/prefect-dbt/cloud/jobs/:
...
dbt_cloud_credentials = DbtCloudCredentials.load("dbt-token")
dbt_cloud_job = DbtCloudJob.load(
dbt_cloud_credentials=dbt_cloud_credentials,
job_id=154217
)
...
However, when I try to run the above, I get error
TypeError: Block.load() got an unexpected keyword argument 'dbt_cloud_credentials'
Looking at source, the signature for DbtCloudJob.load() is that for class Block in prefect.blocks.core. This signature has no support for dbt_cloud_credentials or job_id
Can someone please assist?Kevin Grismore
12/08/2023, 2:11 PM.load part, looks like that's a small mistake in the example. Sorry! .load is for loading existing saved blocks by name.Kevin Grismore
12/08/2023, 2:12 PMDbtCloudJob(), with your arguments.Cormac
12/08/2023, 2:12 PMCormac
12/08/2023, 2:13 PMCormac
12/08/2023, 2:15 PMKevin Grismore
12/08/2023, 2:24 PMCormac
12/08/2023, 2:25 PM