Skip to content

Use enum for task_states/dag_states #9387

@mik-laj

Description

@mik-laj

Hello,

We use Python 3+, so we should consider using an enumerated type for objects that are buckets for contents This will give us better type hints.
https://github.com/apache/airflow/blob/master/airflow/utils/state.py

Best regards,
Kamil Breguła

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions