nrnavaneet opened a new pull request, #53237: URL: https://github.com/apache/airflow/pull/53237
This PR addresses [#53231](https://github.com/apache/airflow/issues/53231) by enabling __slots__ in the DagCallbackRequest class using Pydantic v2’s model_config = {"slots": True} configuration. Changes Made: • Enabled __slots__ in DagCallbackRequest to eliminate __dict__ overhead. • Reduces memory usage and slightly improves performance during DAG scheduling. • No changes to public APIs or runtime behavior; backward-compatible. Why: • DagCallbackRequest is a fixed-structure internal model used frequently during scheduling. • Optimising memory for such objects is beneficial at scale. Tests: • All existing unit tests pass. • Pre-commit checks have been run successfully. -- 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]
