jason810496 opened a new pull request, #48177:
URL: https://github.com/apache/airflow/pull/48177
closes: #47920
## Why
```python
# Setting a variable in Dag is failing due to 'Direct database access via
the ORM is not allowed in Airflow 3.0'
from datetime import datetime
from airflow.models import Variable
from airflow import DAG
my_var = Variable.set("param_variable", 10)
```
## What
Port `Variable.set` from TaskSDK to `airflow.models.Variable.set`
--
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]