ashb commented on issue #52413:
URL: https://github.com/apache/airflow/issues/52413#issuecomment-3026938594
@BBQing That is not true anymore -- as long as _somewhere_ in
parsing/executing the top level code `with dag` is called, then it will be
autoregistered and picked up,
i.e. this would be fine and the dag will be picked up:
```python
def create_dag() -> None:
with DAG(dag_id="hello"): ...
create_dag()
```
--
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]