title: Python POST requests missing
body: <p>I have a cron job running my Py script every 15m. The script works in a way to pull the last records 15m back from the DB and push them to external API. </p>
  
  <p>Here is the relevant part of the code:</p>
  
  <pre><code>try:
      with db.cursor() as cur:
          query = """
          select idfa, idfv, product_id from ios_purchase where purchase_date &gt;= %s and purchase_date &lt;= %s
          """
          cur.execute(query, data)
          for row in cur:
              params['advertising_id'] = row[0]
              params['developer_device_id'] = row[1]
              params['product_id'] = row[2]
              params['price'] = 3.99
              r = requests.post('https://xxx.xxx.io/v0/p', auth=(config['xxx']['API_KEY'], ''),
                                params=params)
              print(date_end, r.url, r.status_code, r.content)
  except:
      print("db error purchase")
      sys.exit(1)
  </code></pre>
  
  <p>When I try to manually run a query on the DB, I get the expected number of records. </p>
  
  <p>Upon checking the logs however, sometimes happens that not all requests went through as I have for example 5 records in the DB to push, but only 4 requests in the log. </p>
  
  <p>I am usually a PHP dev so I don't know whether this is some "expected" Python issue with multiple requests in the short time span or something? </p>
  
  <p>Any ideas?</p>