
import os

from google.appengine.ext import vendor

# Add any libraries installed in the "third_party" folder.
vendor.add('third_party')

# Use remote GCS calls for local development.
if os.environ.get('SERVER_SOFTWARE','').startswith('Development'):
    os.environ['SERVER_SOFTWARE'] += ' remote_api'


import os

from google.appengine.ext import vendor
from google.appengine.api import urlfetch

# Add any libraries installed in the "third_party" folder.
vendor.add('third_party')

# Use remote GCS calls for local development.
if os.environ.get('SERVER_SOFTWARE','').startswith('Development'):
    os.environ['SERVER_SOFTWARE'] += ' remote_api'

# The default deadline of 5 seconds is too aggressive of a target for GCS
# directory listing operations.
urlfetch.set_default_fetch_deadline(60)

Increase Gubernator's url fetch deadline -- 5 seconds is too fast!
Increase Gubernator's url fetch deadline -- 5 seconds is too fast!

This should avoid a lot of refreshes because some directory listing or
download takes slightly too long.

  
  import os
  
  from google.appengine.ext import vendor
+ from google.appengine.api import urlfetch
  
  # Add any libraries installed in the "third_party" folder.
  vendor.add('third_party')
  
  # Use remote GCS calls for local development.
  if os.environ.get('SERVER_SOFTWARE','').startswith('Development'):
      os.environ['SERVER_SOFTWARE'] += ' remote_api'
  
+ # The default deadline of 5 seconds is too aggressive of a target for GCS
+ # directory listing operations.
+ urlfetch.set_default_fetch_deadline(60)
+ 
Increase Gubernator's url fetch deadline -- 5 seconds is too fast!
## Code Before:

import os

from google.appengine.ext import vendor

# Add any libraries installed in the "third_party" folder.
vendor.add('third_party')

# Use remote GCS calls for local development.
if os.environ.get('SERVER_SOFTWARE','').startswith('Development'):
    os.environ['SERVER_SOFTWARE'] += ' remote_api'

## Instruction:
Increase Gubernator's url fetch deadline -- 5 seconds is too fast!
## Code After:

import os

from google.appengine.ext import vendor
from google.appengine.api import urlfetch

# Add any libraries installed in the "third_party" folder.
vendor.add('third_party')

# Use remote GCS calls for local development.
if os.environ.get('SERVER_SOFTWARE','').startswith('Development'):
    os.environ['SERVER_SOFTWARE'] += ' remote_api'

# The default deadline of 5 seconds is too aggressive of a target for GCS
# directory listing operations.
urlfetch.set_default_fetch_deadline(60)
