linkcheck.director.interrupter

Status message handling

Classes

Interrupt(duration)

Thread that raises KeyboardInterrupt after a specified duration.

class linkcheck.director.interrupter.Interrupt(duration)[source]

Bases: CheckedTask

Thread that raises KeyboardInterrupt after a specified duration. This gives us a portable SIGALRM implementation. The duration is checked every 5 seconds.

Initialize the task.

Parameters:

duration (int) – raise KeyboardInterrupt after given number of seconds

run_checked()[source]

Wait and raise KeyboardInterrupt after.

WaitSeconds = 5