diff options
-rw-r--r-- | fietsboek/scripts/fietscron.py | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/fietsboek/scripts/fietscron.py b/fietsboek/scripts/fietscron.py index d8476a9..b968a18 100644 --- a/fietsboek/scripts/fietscron.py +++ b/fietsboek/scripts/fietscron.py @@ -102,10 +102,11 @@ def run_hittekaart(engine: Engine, data_manager: DataManager, redis: Redis, conf item = redis.spop("hittekaart:queue:high") if item is None: break + had_hq_item = True user = session.execute(select(models.User).filter_by(id=int(item))).scalar() if user is None: LOGGER.debug("User %d had a high-priority queue entry but was not found", item) - break + continue for mode in modes: LOGGER.info("Generating %s for user %d (high-priority)", mode.value, user.id) |