title: GAE and google.appengine.runtime.DeadlineExceededError
body: <p>In my GAE code I upload several files to 3rd party (not mine) server:</p>
  
  
  
  <pre class="lang-py prettyprint-override"><code>for argument in files_arguments:
      files_counter +=1
      file_size = len(self.request.get(argument))/(1024.0*1024.0)
      if file_size &lt;= 1:
          files.append(MultipartParam('file1', self.request.get(argument), 'file'+str(files_counter)+'.jpg', 'application/x-www-form-urlencoded'))
          # sending file
          data, headers = multipart_encode(files)
          # try 3 times to send the file
          for i in range(3):
              try:
                  result = urlfetch.fetch(url=self.request.get('upload_url'), 
                                          payload=''.join(data),
                                          method=urlfetch.POST,
                                          headers=headers,
                                          deadline=10
                                          )              
                  break
              except DownloadError:
                  logging.error('(POST) ... DownloadError during file upload, attempt ' + str(i))
                  pass
              except DeadlineExceededError:
                  logging.error('(POST) ... DeadlineExceededError during file upload, attempt ' + str(i))
                  pass
          if result.status_code == 200:
  </code></pre>
  
  <p>and on ~10th file I am getting that DeadlineExceededError.
  What can I do to avoid that?</p>