From 51b109c2452542d4ae0e7aef806040b77d1d3292 Mon Sep 17 00:00:00 2001 From: Daniel Schadt Date: Mon, 3 Apr 2023 21:05:08 +0200 Subject: fietscron: add queue priority for hittekaart log --- fietsboek/scripts/fietscron.py | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/fietsboek/scripts/fietscron.py b/fietsboek/scripts/fietscron.py index 897078c..f0dc438 100644 --- a/fietsboek/scripts/fietscron.py +++ b/fietsboek/scripts/fietscron.py @@ -109,11 +109,11 @@ def run_hittekaart(engine: Engine, data_manager: DataManager, redis: Redis, conf break user = session.execute(select(models.User).filter_by(id=int(item))).scalar() if user is None: - LOGGER.debug("User %d had a queue entry but was not found", item) + LOGGER.debug("User %d had a high-priority queue entry but was not found", item) break for mode in modes: - LOGGER.info("Generating %s for user %d", mode.value, user.id) + LOGGER.info("Generating %s for user %d (high-priority)", mode.value, user.id) hittekaart.generate_for(user, session, data_manager, mode, exe_path=exe_path) if had_hq_item: @@ -130,11 +130,11 @@ def run_hittekaart(engine: Engine, data_manager: DataManager, redis: Redis, conf user = session.execute(select(models.User).filter_by(id=int(item))).scalar() if user is None: - LOGGER.debug("User %d had a queue entry but was not found", item) + LOGGER.debug("User %d had a low-priority queue entry but was not found", item) return for mode in modes: - LOGGER.info("Generating %s for user %d", mode.value, user.id) + LOGGER.info("Generating %s for user %d (low-priority)", mode.value, user.id) hittekaart.generate_for(user, session, data_manager, mode, exe_path=exe_path) -- cgit v1.2.3