kopia lustrzana https://github.com/kartoza/docker-osm
#12 no sleep if an error occured with osmupdate
rodzic
757f4f18ca
commit
b50ef1fa59
|
@ -144,7 +144,10 @@ while True:
|
||||||
|
|
||||||
if call(command) != 0:
|
if call(command) != 0:
|
||||||
print >> stderr, 'An error occured in osmupdate.'
|
print >> stderr, 'An error occured in osmupdate.'
|
||||||
|
# Sleep less.
|
||||||
# Sleep
|
print 'Sleeping for 2 seconds.'
|
||||||
print 'Sleeping for %s seconds.' % default['TIME']
|
sleep(2.0)
|
||||||
sleep(float(default['TIME']))
|
else:
|
||||||
|
# Everything was fine, let's sleeping.
|
||||||
|
print 'Sleeping for %s seconds.' % default['TIME']
|
||||||
|
sleep(float(default['TIME']))
|
||||||
|
|
Ładowanie…
Reference in New Issue