kir-rin commented on issue #66104:
URL: https://github.com/apache/airflow/issues/66104#issuecomment-4534569623
I'm the author of #67325. **I'm leaving this comment to explain why I closed
the PR.**
Since config changes require a restart, I don't think the default argument
evaluation at module load time is a bug.
I tried to reproduce the issue to identify the actual root cause, but
couldn't — the DAG files appeared in the UI correctly in my tests.
I tested both `airflow standalone` and separate `scheduler` + `api-server` +
`processor` setups.
Example files I used (same wrapper pattern from the issue description):
- `dags/wrapper/flow.py` — the wrapper decorator
- `dags/test.py` — uses the wrapper, also no keywords
```python
from datetime import datetime
from wrapper.flow import flow
@flow(schedule=none, start_date=datetime(2024, 1, 1))
def test():
print("hello")
test()
```
The DAG was discovered and visible in the UI after setting
`DAG_DISCOVERY_SAFE_MODE=False` and restarting.
--
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]