This commit is contained in:
Pünkösd Marcell 2021-12-12 00:59:00 +01:00
parent f4b226f298
commit 0765d98c1f
2 changed files with 12 additions and 4 deletions

View File

@ -8,9 +8,7 @@ from sentry_sdk.integrations.logging import LoggingIntegration
from config import Config
from apscheduler.schedulers.blocking import BlockingScheduler
def run():
logging.info("Csirip")
from run_scheduler import run
def main():
@ -38,7 +36,12 @@ def main():
scheduler = BlockingScheduler()
scheduler.add_job(run, trigger='interval', seconds=Config.INTERVAL)
try:
scheduler.start()
except KeyboardInterrupt:
pass
scheduler.shutdown()
if __name__ == '__main__':

View File

@ -0,0 +1,5 @@
import logging
def run():
logging.info("Csirip")