MCPcopy
hub / github.com/celery/celery / ignore

Method ignore

celery/platforms.py:666–672  ·  view source on GitHub ↗

Ignore signal using :const:`SIG_IGN`. Does nothing if the platform has no support for signals, or the specified signal in particular.

(self, *names)

Source from the content-addressed store, hash-verified

664 self.update((sig, self.default) for sig in signal_names)
665
666 def ignore(self, *names):
667 """Ignore signal using :const:`SIG_IGN`.
668
669 Does nothing if the platform has no support for signals,
670 or the specified signal in particular.
671 """
672 self.update((sig, self.ignored) for sig in names)
673
674 def __getitem__(self, name):
675 return _signal.getsignal(self.signum(name))

Callers 1

test_ignoreMethod · 0.45

Calls 1

updateMethod · 0.95

Tested by 1

test_ignoreMethod · 0.36