Skip to content

vllm.utils.watch_dog

Classes:

Functions:

  • get_watch_dog –

    Return the process-wide WatchDog singleton.

  • start_watch_dog –

    Start the process-wide watchdog if watchdog_config.dump_dir is set.

ThreadedWatchDog

Bases: WatchDog

Dumps the stacks of all threads when not fed within the timeout.

Methods:

  • handle_failure –

    Append a numbered dump of all thread stacks to the dump file.

handle_failure(reason)

Append a numbered dump of all thread stacks to the dump file.

WatchDog

Bases: ABC

Methods:

  • disable –

    Suspend timeout detection, e.g. while blocking on idle input.

  • feed –

    Mark that the process is making progress.

  • handle_failure –

    Record the state of all threads for debugging.

disable() abstractmethod

Suspend timeout detection, e.g. while blocking on idle input.

feed() abstractmethod

Mark that the process is making progress.

handle_failure(reason) abstractmethod

Record the state of all threads for debugging.

get_watch_dog()

Return the process-wide WatchDog singleton.

start_watch_dog(name, watchdog_config, logger)

Start the process-wide watchdog if watchdog_config.dump_dir is set.

Returns the WatchDog singleton either way.