MCPcopy Create free account
hub / github.com/brmmm3/fastthreadpool / _append_failed

Method _append_failed

fastthreadpool/fastthreadpool.py:319–330  ·  view source on GitHub ↗
(self, jobid, exc, args, kwargs)

Source from the content-addressed store, hash-verified

317 pass
318
319 def _append_failed(self, jobid, exc, args, kwargs):
320 if self.result_id:
321 if self.exc_args:
322 self._failed.append(
323 (jobid, exc if not self.exc_stack else traceback.format_exc(), args, kwargs))
324 else:
325 self._failed.append((jobid, exc if not self.exc_stack else traceback.format_exc()))
326 elif self.exc_args:
327 self._failed.append((exc if not self.exc_stack else traceback.format_exc(), args, kwargs))
328 else:
329 self._failed.append(exc if not self.exc_stack else traceback.format_exc())
330 self._failed_cnt.release()
331
332 def _child(self):
333 #c cdef bint run_child, pop_failed

Callers 3

_childMethod · 0.95
_map_childMethod · 0.95
_imap_childMethod · 0.95

Calls 1

releaseMethod · 0.80

Tested by

no test coverage detected