MCPcopy
hub / github.com/celery/celery / reset

Method reset

celery/platforms.py:658–664  ·  view source on GitHub ↗

Reset signals to the default signal handler. Does nothing if the platform has no support for signals, or the specified signal in particular.

(self, *signal_names)

Source from the content-addressed store, hash-verified

656 return getattr(_signal, name)
657
658 def reset(self, *signal_names):
659 """Reset signals to the default signal handler.
660
661 Does nothing if the platform has no support for signals,
662 or the specified signal in particular.
663 """
664 self.update((sig, self.default) for sig in signal_names)
665
666 def ignore(self, *names):
667 """Ignore signal using :const:`SIG_IGN`.

Callers 7

_mock_contextFunction · 0.45
test_resetMethod · 0.45
test_stopMethod · 0.45
test_resetsMethod · 0.45
seMethod · 0.45
detachedFunction · 0.45

Calls 1

updateMethod · 0.95

Tested by 6

_mock_contextFunction · 0.36
test_resetMethod · 0.36
test_stopMethod · 0.36
test_resetsMethod · 0.36
seMethod · 0.36