New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Not all default arguments are being passed to the DbtBuildOperator #51
Comments
Hey @marcusintrohive. Thanks for opening an issue. I'm not able to reproduce your problem: we have multiple operators running in production and we have def notify():
"""Our failure callback.""""
pass
DEFAULT_ARGS = {
"on_failure_callback": notify,
}
with DAG(
"dag_name",
default_args=DEFAULT_ARGS,
schedule_interval="0 * * * *",
) as dag:
dbt_test = DbtTestOperator(
task_id="dbt_test",
project_dir=PROJECT,
profiles_dir=PROFILES,
target="prod",
retries=1,
) Just to be sure, I re-checked our Airflow environment and all In order to help you I'll need more information:
Thank you! |
For the record, we are running Airflow 2.2.2, and the latest |
Thanks for the reply! I gave you snippet above a little test, and what I notice is not all the default args are being passed for the dags which are using the
|
Interesting, we don't really have any tests that cover the In the meantime, I'd suggest upgrading to Thank you! |
This issue hasn't been active in a while and as we have added further test coverage for the If any new information crops up a new issue can be opened, and we will take a look again. |
Hey!
I noticed that the on_failure_callback from the default argument is not being passed to the DBTBuildOperator as wall as the sla argument.
I can see from the "Instance Details" these arguments are being passed to my other tasks but not to the airflow_dbt_python operators I bring in. Will try and come up with a PR for the fix, but if you have any guidance on where to start that would be great!
Thanks
The text was updated successfully, but these errors were encountered: