You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@airflow.apache.org by Aaron Polhamus <aa...@credijusto.com> on 2017/09/08 01:49:32 UTC

How to mix OOP with Airflow?

Question up on SO:
https://stackoverflow.com/questions/46107421/use-xcom-to-exchange-data-between-classes

Basically I have a class that encodes a data preprocessing operation via a
series of different internal methods. Calling these within a DAG doesn't
work because the class that is initialized at the top of the graph isn't
updated by what happens inside the worker.

Has anyone else worked with this? Is this something that can be solved with
XCom?


-- 


*Aaron Polhamus*
*Director of Data Science *

Cel (México): +52 (55) 1951-5612
Cell (USA): +1 (206) 380-3948
Tel: +52 (55) 1168 9757 - Ext. 181

-- 
***Por favor referirse a nuestra página web 
<https://www.credijusto.com/aviso-de-privacidad/> para más información 
acerca de nuestras políticas de privacidad.*