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 294c9c7 commit 8936fb6
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions librarian_background/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -38,8 +38,10 @@ def background(run_once: bool = False):
logger.debug("Scheduling background task: {}", task)
scheduler.every(task.every.seconds).seconds.do(task.task)

logger.debug("Running all tasks on startup.")
# ...and run it all on startup.
scheduler.run_all()
logger.debug("All tasks run on startup.")

# ...begin scheduling operations.
while not run_once:
Expand Down

0 comments on commit 8936fb6

Please sign in to comment.