Rodrigo Martins de Oliveira created AIRFLOW-5039:
----------------------------------------------------

             Summary: xcom_push execution_date setting is broken when 
core.enable_xcom_pickling=False
                 Key: AIRFLOW-5039
                 URL: https://issues.apache.org/jira/browse/AIRFLOW-5039
             Project: Apache Airflow
          Issue Type: Bug
          Components: xcom
    Affects Versions: 1.10.3, 1.10.2
            Reporter: Rodrigo Martins de Oliveira


Function [xcom_push from airflow.models.taskinstance automatically sets the 
execution_date to 
XCOM|https://github.com/apache/airflow/blob/7f66d0a6dc13a790b4d2d31694cb50737983f82e/airflow/models/taskinstance.py#L1336],
 while this is fine when pickling is enabled it just won't work when it isn't 
as [XCOM will attempt to JSON serialize a `datetime` 
object|https://github.com/apache/airflow/blob/7f66d0a6dc13a790b4d2d31694cb50737983f82e/airflow/models/xcom.py#L229],
 which is unsupported.

 

This issue is critical as having pickle enabled poses security risks and [in 
environments such as Google Cloud Composer pickling is disabled for 
good|[https://cloud.google.com/composer/docs/concepts/airflow-configurations]].



--
This message was sent by Atlassian JIRA
(v7.6.14#76016)

Reply via email to