git://git.onelab.eu
/
plstackapi.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (from parent 1:
d687e81
)
stop silently absorbing exceptions inside of sync steps
author
Scott Baker
<smbaker@gmail.com>
Tue, 3 Jun 2014 05:14:49 +0000
(22:14 -0700)
committer
Scott Baker
<smbaker@gmail.com>
Tue, 3 Jun 2014 05:14:49 +0000
(22:14 -0700)
planetstack/observer/event_loop.py
patch
|
blob
|
history
diff --git
a/planetstack/observer/event_loop.py
b/planetstack/observer/event_loop.py
index
57f432e
..
6c19215
100644
(file)
--- a/
planetstack/observer/event_loop.py
+++ b/
planetstack/observer/event_loop.py
@@
-240,9
+240,10
@@
class PlanetStackObserver:
self.check_schedule(sync_step) # dont run sync_network_routes if time since last run < 1 hour
should_run = True
except StepNotReady:
self.check_schedule(sync_step) # dont run sync_network_routes if time since last run < 1 hour
should_run = True
except StepNotReady:
- logg
ing
.info('Step not ready: %s'%sync_step.__name__)
+ logg
er
.info('Step not ready: %s'%sync_step.__name__)
failed_steps.append(sync_step)
except:
failed_steps.append(sync_step)
except:
+ logger.info('Exception when checking schedule: %s'%sync_step.__name__)
failed_steps.append(sync_step)
if (should_run):
failed_steps.append(sync_step)
if (should_run):
@@
-262,6
+263,7
@@
class PlanetStackObserver:
failed_step_objects.update(failed_objects)
self.update_run_time(sync_step)
except:
failed_step_objects.update(failed_objects)
self.update_run_time(sync_step)
except:
+ logger.log_exc('Failure in step: %s'%sync_step.__name__)
failed_steps.append(S)
self.save_run_times()
except:
failed_steps.append(S)
self.save_run_times()
except: