def __init__(self, *args, **kwargs): """ A scheduler based on the `rq` scheduler but in its own thread. """ threading.Thread.__init__(self) Scheduler.__init__(self, *args, interval=10, **kwargs) self._lock = threading.Lock() self._running = False