You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@airflow.apache.org by GitBox <gi...@apache.org> on 2021/04/08 17:12:06 UTC

[GitHub] [airflow] uranusjr commented on pull request #15285: Fixed #9387: Add State types for tasks and DAGs

uranusjr commented on pull request #15285:
URL: https://github.com/apache/airflow/pull/15285#issuecomment-815994439


   > Switching TaskState and DagState to _actually_ be an enum, and have to go rewrite a large chunk of core code and potentially break compatability with many providers since it'll change the values of all the states to be of type `EnumValue`.
   
   Would it help to initially make them a [`StrEnum`](https://docs.python.org/3/library/enum.html#others), and slowly convert the type hints to take an enum value instead of str?


-- 
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.

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