support stopping of optimizations
This commit is contained in:
parent
a889cba908
commit
9a8fe8b55e
2 changed files with 10 additions and 7 deletions
|
|
@ -36,8 +36,9 @@ class Visibility(Optimization):
|
|||
return True
|
||||
|
||||
def stop(self):
|
||||
# TODO
|
||||
return False
|
||||
self.sched.cancel(self.cron)
|
||||
self.cron = None
|
||||
return True
|
||||
|
||||
def is_running(self):
|
||||
return self.cron is not None
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue