kaxil commented on PR #72563:
URL: https://github.com/apache/airflow/pull/72563#issuecomment-5940853758

   Closing this. Fixing the `executor_config` aliasing only needs that value 
copied, but this also switches `_get_parent_defaults` from `copy.copy` to 
`copy.deepcopy` for every `default_args` value, task-group defaults included. 
Values that can't be deep-copied then fail when the Dag is parsed: a 
`default_args` whose `on_failure_callback` is bound to an object holding a 
`threading.Lock` copies fine today and raises `TypeError: cannot pickle 
'_thread.lock' object` under `deepcopy`. There's also no test for the aliasing 
this sets out to fix.


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

Reply via email to