fbmatilla opened a new issue, #61676:
URL: https://github.com/apache/airflow/issues/61676
### Apache Airflow version
3.1.7
### If "Other Airflow 3 version" selected, which one?
_No response_
### What happened?
I can not access variables inside the triggerer by using the
airflow.sdk.Variable module, an error VARIABLE_NOT_FOUND is raised.
### What you think should happen instead?
Worker can access Variable module however Triggerer can not.
### How to reproduce
1.- Create a new variable with name retries and a value of 10.
2.- Put the attached files in the right folders:
- dag_example.py into your dag folder
- lib_example.py into a folder in yout PYTHONPATH
Run the DAG:
- The first task access the variable correctly
- The second task (the one deferred) fails because the triggerer can not
access the variable.
You get an error like this:
[2026-02-09T15:22:57.644686Z] ERROR - Trigger
ejemplo_deferrable_3_0/manual__2026-02-09T15:21:16.609292+00:00/async_task/-1/2
(ID 17) exited with error VARIABLE_NOT_FOUND: {'message': 'Variable retries not
found'}AirflowRuntimeError: VARIABLE_NOT_FOUND: {'message': 'Variable retries
not found'}
Attached files:
[dag_example.py](https://github.com/user-attachments/files/25187149/dag_example.py)
[lib_example.py](https://github.com/user-attachments/files/25187152/lib_example.py)
### Operating System
Ubuntu 20.04.6
### Versions of Apache Airflow Providers
apache-airflow==3.1.7
apache-airflow-core==3.1.7
apache-airflow-providers-common-compat==1.13.0
apache-airflow-providers-common-io==1.7.0
apache-airflow-providers-common-sql==1.30.2
apache-airflow-providers-google==19.3.0
apache-airflow-providers-microsoft-azure==12.10.3
apache-airflow-providers-microsoft-mssql==4.4.1
apache-airflow-providers-smtp==2.4.1
apache-airflow-providers-snowflake==6.8.1
apache-airflow-providers-standard==1.10.2
apache-airflow-task-sdk==1.1.7
### Deployment
Official Apache Airflow Helm Chart
### Deployment details
_No response_
### Anything else?
Always
### Are you willing to submit PR?
- [ ] Yes I am willing to submit a PR!
### Code of Conduct
- [x] I agree to follow this project's [Code of
Conduct](https://github.com/apache/airflow/blob/main/CODE_OF_CONDUCT.md)
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]