[Bug] DbtDocsGCSLocalOperator.upload_to_cloud_storage() got an unexpected keyword argument 'context' #1420
Labels
bug
Something isn't working
dbt:docs
Primarily related to dbt docs command or functionality
execution:local
Related to Local execution environment
triage-needed
Items need to be reviewed / assigned to milestone
Milestone
Astronomer Cosmos Version
1.8.0
dbt-core version
1.9.0
Versions of dbt adapters
No response
LoadMode
AUTOMATIC
ExecutionMode
LOCAL
InvocationMode
None
airflow version
2.10.3
Operating System
linux
If a you think it's an UI issue, what browsers are you seeing the problem on?
No response
Deployment
Official Apache Airflow Helm Chart
Deployment details
No response
What happened?
Since
astronomer-cosmos
versionv1.8.0
has been released recently, I have found a new bug related todbt docs
In the file
cosmos/operators/local.py
, thecontext
is passed as parameter to thecallback
function:The class
DbtDocsCloudLocalOperator
has the methodupload_to_cloud_storage
and assign it as thecallback
function:Here the
upload_to_cloud_storage
method is missing the parametercontext
, then it causes the error:TypeError: DbtDocsGCSLocalOperator.upload_to_cloud_storage() got an unexpected keyword argument 'context'
Relevant log output
How to reproduce
In the code, I call this as a task in my dag:
Anything else :)?
No response
Are you willing to submit PR?
Contact Details
[email protected]
The text was updated successfully, but these errors were encountered: