remove verbose funcs

This commit is contained in:
deflax 2024-01-07 06:05:56 +02:00
parent 04792561ff
commit 807a4d0ebb

View file

@ -177,12 +177,6 @@ def core_api_sync():
database.pop(orphan_key) database.pop(orphan_key)
scheduler.remove_job(orphan_key) scheduler.remove_job(orphan_key)
def show_database():
logger_job.info('Scheduler DB: ' + str(database))
def show_scheduled_tasks():
logger_job.info('Scheduler tasks:' + str(scheduler.get_jobs()))
# Login # Login
# TODO fix logger_api # TODO fix logger_api
try: try:
@ -194,13 +188,8 @@ except Exception as err:
logger_api.error(err) logger_api.error(err)
# Schedule datarhei core api sync # Schedule datarhei core api sync
#scheduler.add_job(func=core_api_sync, id="core_api_init")
scheduler.add_job(func=core_api_sync, trigger="interval", seconds=CORE_SYNC_PERIOD, id="core_api_sync") scheduler.add_job(func=core_api_sync, trigger="interval", seconds=CORE_SYNC_PERIOD, id="core_api_sync")
# Schedule show db/tasks
scheduler.add_job(func=show_database, trigger="interval", minutes=3, id="show_database")
scheduler.add_job(func=show_scheduled_tasks, trigger="interval", minutes=3, id="show_scheduled_tasks")
scheduler.start() scheduler.start()
@app.route('/', methods=['GET']) @app.route('/', methods=['GET'])