Skip to content

Commit 4ca8a52

Browse files
kytpbsvirtualdspacey-sooty
authored
Expose watchdog.printEpochs in CommandScheduler (#67)
* Expose `watchdog.printEpochs` in CommandScheduler * Update commands2/commandscheduler.py Co-authored-by: Jade <spacey-sooty@proton.me> --------- Co-authored-by: Dustin Spicuzza <dustin@virtualroadside.com> Co-authored-by: Jade <spacey-sooty@proton.me>
1 parent c573294 commit 4ca8a52

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

commands2/commandscheduler.py

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -480,6 +480,12 @@ def enable(self) -> None:
480480
"""Enables the command scheduler."""
481481
self._disabled = False
482482

483+
def printWatchdogEpochs(self) -> None:
484+
"""
485+
Prints list of epochs added so far and their times.
486+
"""
487+
self._watchdog.printEpochs()
488+
483489
def onCommandInitialize(self, action: Callable[[Command], Any]) -> None:
484490
"""
485491
Adds an action to perform on the initialization of any command by the scheduler.

0 commit comments

Comments
 (0)