Changeset e3ded65 in osmose-backend


Ignore:
Timestamp:
Oct 17, 2014 12:20:35 AM (5 years ago)
Author:
Nelson A. de Oliveira <naoliv@…>
Branches:
master
Children:
4ca12a4
Parents:
6681de1
Message:

Sleep a little on consecutive timeouts/errors

Better avoid some temporary network problem, sleeping 15 seconds after first fail and 30 seconds on the second time.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • osmose_run.py

    r6681de1 re3ded65  
    3232import dateutil.parser 
    3333import socket 
     34import time 
    3435 
    3536#proxy_support = urllib2.ProxyHandler() 
     
    587588 
    588589                        while not update_finished and nb_iter < 3: 
     590                            time.sleep(nb_iter * 15) 
    589591                            nb_iter += 1 
    590592                            logger.sub().sub().log("iteration=%d" % nb_iter) 
Note: See TracChangeset for help on using the changeset viewer.