aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDaniel Schadt <kingdread@gmx.de>2023-04-03 21:05:08 +0200
committerDaniel Schadt <kingdread@gmx.de>2023-04-03 21:05:08 +0200
commit51b109c2452542d4ae0e7aef806040b77d1d3292 (patch)
tree79178707b500ec67c08d0d9eb146857efc7eca14
parentec3bf656ef3365026678edc95c4cbaf4a07e6d5e (diff)
downloadfietsboek-51b109c2452542d4ae0e7aef806040b77d1d3292.tar.gz
fietsboek-51b109c2452542d4ae0e7aef806040b77d1d3292.tar.bz2
fietsboek-51b109c2452542d4ae0e7aef806040b77d1d3292.zip
fietscron: add queue priority for hittekaart log
-rw-r--r--fietsboek/scripts/fietscron.py8
1 files 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)