-
Notifications
You must be signed in to change notification settings - Fork 14.8k
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
Triggerer code does not seem to be able to use an Airflow connection & variable #48183
Comments
This is the traceback I see
|
It is same for XCom, Variable or anything that requires DB connection in the actual trigger code. |
@kaxil for XCom, Variable are we tracking on SDK board? |
Just curious, what would a fix for this look like? |
@jroachgolf84 Adding something like airflow/airflow-core/src/airflow/dag_processing/processor.py Lines 261 to 296 in 6a703dd
here airflow/airflow-core/src/airflow/jobs/triggerer_job_runner.py Lines 299 to 315 in 6a703dd
|
No but the same code should fix both, the one that is in Ash's example for DAG processor |
@jroachgolf84 Thanks for the PR. I didn't know you were working on that. I also have a draft there: I think you are missing some pieces (extend the |
Apache Airflow version
main (development)
If "Other Airflow 2 version" selected, which one?
No response
What happened?
I am building a new deferrable operator in the databricks provider. Although the synchronous version of the operator seems to work fine, when using
deferrable=True
, it's complaining that the Airflow connection isn't defined. Likely it appears that the Triggerer is not fetching the Airflow connection or is failing to fetch the connection.What you think should happen instead?
The Triggerer code should be able to use the Airflow connections so that the deferrable operators work fine.
How to reproduce
Run an example DAG with an Airflow operator with
deferrable=True
that tries to use an Airflow connectionOperating System
Darwin
Versions of Apache Airflow Providers
No response
Deployment
Virtualenv installation
Deployment details
Locally using latest code from main using Breeze
Anything else?
No response
Are you willing to submit PR?
Code of Conduct
The text was updated successfully, but these errors were encountered: