MCPcopy Create free account
hub / github.com/celery/celery / send

Method send

celery/apps/multi.py:209–223  ·  view source on GitHub ↗
(self, sig, on_error=None)

Source from the content-addressed store, hash-verified

207 return self.send(0)
208
209 def send(self, sig, on_error=None):
210 pid = self.pid
211 if pid:
212 try:
213 os.kill(pid, sig)
214 except OSError as exc:
215 if exc.errno not in (errno.ESRCH, errno.EPERM):
216 raise
217 # ESRCH: pid is gone. EPERM: the pid was recycled by
218 # the OS and now belongs to another user's process.
219 # Either way, treat it as this node no longer being alive.
220 maybe_call(on_error, self)
221 return False
222 return True
223 maybe_call(on_error, self)
224
225 def start(self, env=None, **kwargs):
226 return self._waitexec(

Callers 15

aliveMethod · 0.95
finishedMethod · 0.45
startMethod · 0.45
on_consumer_readyMethod · 0.45
start_workerFunction · 0.45
send_allMethod · 0.45
shutdown_nodesMethod · 0.45
on_before_initMethod · 0.45
on_startMethod · 0.45
on_consumer_readyMethod · 0.45
_handle_requestFunction · 0.45
heartbeatFunction · 0.45

Calls 2

maybe_callFunction · 0.85
killMethod · 0.45

Tested by

no test coverage detected