BasPH commented on issue #29009:
URL: https://github.com/apache/airflow/issues/29009#issuecomment-1386976758

   Could you provide a working example? I'm not following your code example.
   
   My point is that:
   ```python
   with DAG(...):
   ```
   Indeed works, so without having to write `as dag`.
   
   However, this does not:
   ```python
   @dag(...)
   def mydag():
       ...
   ```
   
   You have to call `mydag()` for Airflow to register the decorated DAG 
function. According to the docs this should not be necessary?


-- 
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: commits-unsubscr...@airflow.apache.org

For queries about this service, please contact Infrastructure at:
us...@infra.apache.org

Reply via email to