MCPcopy Index your code
hub / github.com/saltstack/salt / register_finalize_method

Method register_finalize_method

salt/utils/process.py:1091–1097  ·  view source on GitHub ↗

Register a function to run as process terminates

(self, function, *args, **kwargs)

Source from the content-addressed store, hash-verified

1089 self._after_fork_methods.append(after_fork_method_tuple)
1090
1091 def register_finalize_method(self, function, *args, **kwargs):
1092 """
1093 Register a function to run as process terminates
1094 """
1095 finalize_method_tuple = (function, args, kwargs)
1096 if finalize_method_tuple not in self._finalize_methods:
1097 self._finalize_methods.append(finalize_method_tuple)
1098
1099
1100class SignalHandlingProcess(Process):

Callers 3

add_processMethod · 0.95
__setstate__Method · 0.95

Calls 1

appendMethod · 0.45

Tested by 1