MCPcopy
hub / github.com/celery/celery / terminate_job

Method terminate_job

celery/concurrency/eventlet.py:147–151  ·  view source on GitHub ↗
(self, pid, signal=None)

Source from the content-addressed store, hash-verified

145 self.limit = limit
146
147 def terminate_job(self, pid, signal=None):
148 if pid in self._pool_map.keys():
149 greenlet = self._pool_map[pid]
150 greenlet.kill()
151 greenlet.wait()
152
153 def _get_info(self):
154 info = super()._get_info()

Callers

nothing calls this directly

Calls 3

keysMethod · 0.80
killMethod · 0.45
waitMethod · 0.45

Tested by

no test coverage detected