Skip to content
Snippets Groups Projects
Unverified Commit da126619 authored by Antoine R. Dumont's avatar Antoine R. Dumont
Browse files

runner-first-visits: Improve log message

This log message serves as a crude healt check so we keep it but we make it a bit more
interesting.
parent f28b3fa4
No related branches found
Tags v2.6.1
1 merge request!393runner-first-visits: Improve log message
Pipeline #11643 canceled
......@@ -249,9 +249,14 @@ def runner_first_visits(ctx, period):
try:
while True:
logger.debug("Schedule first visits...")
start = time.monotonic()
try:
nb_first_visits = schedule_first_visits(scheduler)
logger.info("Scheduled %s first visits", nb_first_visits)
logger.info(
"Scheduled %s first visits in %s seconds",
nb_first_visits,
time.monotonic() - start,
)
except Exception:
logger.exception("Unexpected error in run_high_priority_first_visits()")
sentry_sdk.capture_exception()
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment