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

Method reset

celery/platforms.py:722–728  ·  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

720 return getattr(_signal, name)
721
722 def reset(self, *signal_names):
723 """Reset signals to the default signal handler.
724
725 Does nothing if the platform has no support for signals,
726 or the specified signal in particular.
727 """
728 self.update((sig, self.default) for sig in signal_names)
729
730 def ignore(self, *names):
731 """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