collinmcnulty opened a new issue, #23343:
URL: https://github.com/apache/airflow/issues/23343

   ### Apache Airflow version
   
   2.2.5 (latest released)
   
   ### What happened
   
   If the argument `owner` is unhashable, such as a list, the DAG will fail to 
be imported, but will also not report as an import error. If the DAG is new, it 
will simply be missing. If this is an update to the existing DAG, the webserver 
will continue to show the old version.
   
   ### What you think should happen instead
   
   A DAG import error should be raised.
   
   ### How to reproduce
   
   Set the `owner` argument for a task to be a list. See this minimal 
reproduction DAG.
   
   ```
   from datetime import datetime
   from airflow.decorators import dag, task
   
   @dag(
       schedule_interval="@daily",
       start_date=datetime(2021, 1, 1),
       catchup=False,
       default_args={"owner": ["person"]},
       tags=['example'])
   def demo_bad_owner():
       @task()
       def say_hello():
           print("hello")
   
   demo_bad_owner()
   ```
   
   ### Operating System
   
   Debian Bullseye
   
   ### Versions of Apache Airflow Providers
   
   None needed.
   
   ### Deployment
   
   Astronomer
   
   ### Deployment details
   
   _No response_
   
   ### Anything else
   
   The worker appears to still be able to execute the tasks when updating an 
existing DAG. Not sure how that's possible.
   
   Also reproduced on 2.3.0rc2.
   
   ### 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]

Reply via email to