Giovanni Paolo Gibilisco created AIRFLOW-2081:
-------------------------------------------------
Summary: Allow response_check of HTTPOperator to access context
Key: AIRFLOW-2081
URL: https://issues.apache.org/jira/browse/AIRFLOW-2081
Project: Apache Airflow
Issue Type: Improvement
Components: operators
Affects Versions: Airflow 2.0
Reporter: Giovanni Paolo Gibilisco
It would be useful to allow response_check of the HTTPOperator to access the
context so that users can work on the response and push some of the content to
Xcom. Currently the only option is to forward the entier response via
xcom_push_flag. This is unconvenient if only part of the response is relevant.
Could be implemented by adding the context as argument to the invocation of the
response_check function in
[https://github.com/apache/incubator-airflow/blob/master/airflow/operators/http_operator.py]
following the pattern used in the PythonOperator.
--
This message was sent by Atlassian JIRA
(v7.6.3#76005)