git://git.onelab.eu
/
plstackapi.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
fix check_schedule
[plstackapi.git]
/
planetstack
/
observer
/
event_loop.py
diff --git
a/planetstack/observer/event_loop.py
b/planetstack/observer/event_loop.py
index
482c5a8
..
f67e2eb
100644
(file)
--- a/
planetstack/observer/event_loop.py
+++ b/
planetstack/observer/event_loop.py
@@
-176,7
+176,7
@@
class PlanetStackObserver:
self.last_run_times[step.__name__]=time.time()
def check_schedule(self, step):
self.last_run_times[step.__name__]=time.time()
def check_schedule(self, step):
- time_since_last_run = time.time() - self.last_run_times
[step.__name__]
+ time_since_last_run = time.time() - self.last_run_times
.get(step.__name__, 0)
try:
if (time_since_last_run < step.requested_interval):
raise StepNotReady
try:
if (time_since_last_run < step.requested_interval):
raise StepNotReady