MCPcopy
hub / github.com/celery/celery / stop

Method stop

celery/utils/timer2.py:103–108  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

101 os._exit(1)
102
103 def stop(self) -> None:
104 self.__is_shutdown.set()
105 if self.running:
106 self.__is_stopped.wait()
107 self.join(THREAD_TIMEOUT_MAX)
108 self.running = False
109
110 def ensure_started(self) -> None:
111 if not self.running and not self.is_alive():

Callers 2

test_enter_afterMethod · 0.95
test_gc_race_lostMethod · 0.95

Calls 3

setMethod · 0.45
waitMethod · 0.45
joinMethod · 0.45

Tested by 2

test_enter_afterMethod · 0.76
test_gc_race_lostMethod · 0.76