jrwalk commented on issue #7870: migrate from `dill` to `cloudpickle` for 
advanced serialization
URL: https://github.com/apache/airflow/issues/7870#issuecomment-605065110
 
 
   so `dill` is optional to use (set by a flag in the 
`PythonVirtualenvOperator`) but is always imported and treated as a required 
dependency for Airflow, right?  Keeping that pattern it should be super easy to 
cut over to `cloudpickle`.  
   
   I'd generally advocate for allowing fewer dependencies though, so it could 
be nice to make `cloudpickle` a proper extra-dependency and put some checks 
around the import.  That would let people keep minimal environments if they 
choose/need to.  I've also run into situations where it wasn't being used (no 
virtualenv operators in my dag) but because it was imported `dill` was still 
getting captured by serializers like `cloudpickle` since they scoop up a fair 
amount of runtime environment information.

----------------------------------------------------------------
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.
 
For queries about this service, please contact Infrastructure at:
[email protected]


With regards,
Apache Git Services

Reply via email to