Skip to content

Commit

Permalink
Add debug statement about bg tasks
Browse files Browse the repository at this point in the history
  • Loading branch information
JBorrow committed Dec 17, 2024
1 parent 68eb4db commit 294c9c7
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions librarian_background/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,8 @@

import time

from loguru import logger

from .core import SafeScheduler
from .settings import background_settings

Expand All @@ -33,6 +35,7 @@ def background(run_once: bool = False):
)

for task in all_tasks:
logger.debug("Scheduling background task: {}", task)
scheduler.every(task.every.seconds).seconds.do(task.task)

# ...and run it all on startup.
Expand Down

0 comments on commit 294c9c7

Please sign in to comment.