skestle commented on PR #38916: URL: https://github.com/apache/airflow/pull/38916#issuecomment-2700101805
Found on https://airflow.apache.org/docs/apache-airflow/stable/authoring-and-scheduling/deferring.html: When you opt to defer, your operator will stop executing at that point and be removed from its current worker. No state will persist, such as local variables or attributes set on self. When your operator resumes, it resumes as a new instance of it. The only way you can pass state from the old instance of the operator to the new one is with method_name and kwargs. I just might make a PR for `baseoperator.defer` to highlight this functionality -- 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]
