title: In locust How to get a response from one task and pass it to other task
body: <p>I have started using Locust to do performance test.
  I want to fire two post request to two different end points. But the second post request needs response of the first request. How to do this in convenient way. I have tried like below but not working.</p>
  
  <pre><code>from locust import HttpLocust, TaskSet, task
  
  class GetDeliveryDateTasks(TaskSet):
  
      request_list = []
  
      @task
      def get_estimated_delivery_date(self):
          self.client.headers['Content-Type'] = "application/json"
          response = self.client.post("/api/v1/estimated-delivery-date/", json=
          {
              "xx": "yy"
  
          }
            )
          json_response_dict = response.json()
          request_id = json_response_dict['requestId']
          self.request_list.append(request_id)
  
  
      @task
      def store_estimated_delivery_date(self):
          self.client.headers['Content-Type'] = "application/json"
          response = self.client.post("/api/v1/estimated-delivery-date/" + str(self.request_list.pop(0)) + "/assign-order?orderId=1")
  
  
  class EDDApiUser(HttpLocust):
      task_set = GetDeliveryDateTasks
      min_wait = 1000
      max_wait = 1000
      host = "http://localhost:8080"
  </code></pre>