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

Method handle_process_exit

celery/apps/multi.py:240–246  ·  view source on GitHub ↗
(self, retcode, on_signalled=None, on_failure=None)

Source from the content-addressed store, hash-verified

238 )
239
240 def handle_process_exit(self, retcode, on_signalled=None, on_failure=None):
241 if retcode < 0:
242 maybe_call(on_signalled, self, -retcode)
243 return -retcode
244 elif retcode > 0:
245 maybe_call(on_failure, self, retcode)
246 return retcode
247
248 def prepare_argv(self, argv, path):
249 args = ' '.join([path] + list(argv))

Calls 1

maybe_callFunction · 0.85