This commit is contained in:
vy.boyko 2024-10-16 15:42:10 +03:00
parent c8995ab1f0
commit b3bb8b79f8

View File

@ -49,6 +49,8 @@ def _do_fetch():
fetch(settings=settings, args=args)
def _start_scheduling():
logger.info("Fetching on start")
_do_fetch()
logger.info('Setting Scheduler up')
schedule = Scheduler()
schedule.cyclic(dt.timedelta(seconds=args.check_interval*60), _do_fetch)