Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Disable attrs state management on MappedOperator #24772

Merged

Commits on Jul 1, 2022

  1. Disable attrs state management on MappedOperator

    The custom __getstate__ and __setstate__ implementation from attrs
    interacts badly with Airflow's DAG serialization and pickling. When a
    mapped task is deserialized, subclasses are coerced to MappedOperator.
    But when the instances go through DAG pickling, all attributes defined
    in the subclasses are dropped by attrs's custom state management.
    
    Since attrs does not do anything too special here (the logic is only
    important for slot=True), we can use Python's built-in implementation
    instead.
    uranusjr committed Jul 1, 2022
    Configuration menu
    Copy the full SHA
    3af6579 View commit details
    Browse the repository at this point in the history

Commits on Jul 5, 2022

  1. Configuration menu
    Copy the full SHA
    825c48c View commit details
    Browse the repository at this point in the history