title: Send the output of one task to another task in airflow
body: <p>I am using airflow, i want to pass the output of the function of task 1 to the task 2.</p>
  <pre><code>
  def create_dag(dag_id,
                 schedule,
                 default_args):
      def getData(**kwargs):
          res = requests.post('https://dummyURL')
          return res.json())  
      def sendAlert(**kwargs):
          requests.post('https://dummyURL', params = &quot;here i want to send res.json() from task 1&quot;)
  
      dag = DAG(dag_id,
                    schedule_interval=schedule,
                    default_args=default_args)
  
      with dag:
          t1 = PythonOperator(task_id='task1',python_callable=getData,provide_context=True,dag=dag)
          t2 = PythonOperator(task_id='task2',python_callable=sendAlert,provide_context=True,dag=dag)
      return dag
  
  </code></pre>