Convertido en configurables los tiempos de espera de los servicios.
This commit is contained in:
parent
99d5d36bf4
commit
29f7401c71
5 changed files with 12 additions and 12 deletions
|
|
@ -3,14 +3,14 @@ sys.path.append('..')
|
|||
from time import sleep
|
||||
from db_layer.capturas_interface import capturas_interface
|
||||
from db_layer.capturing_tasks_interface import capturing_interface
|
||||
|
||||
from core.config import refresher_delay
|
||||
|
||||
class Refresher:
|
||||
|
||||
def start(self):
|
||||
|
||||
while True:
|
||||
sleep(60)
|
||||
sleep(refresher_delay)
|
||||
|
||||
if capturas_interface.old_ads_exist():
|
||||
old_ad = capturas_interface.get_old_ad()
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue