MCPcopy Create free account
hub / github.com/dask/dask / _posttask

Method _posttask

dask/diagnostics/profile.py:372–377  ·  view source on GitHub ↗
(self, key, value, dsk, state, id)

Source from the content-addressed store, hash-verified

370 self._dsk.update(dsk)
371
372 def _posttask(self, key, value, dsk, state, id):
373 t = default_timer()
374 self._cache[key] = (self._metric(value), t)
375 for k in state["released"] & self._cache.keys():
376 metric, start = self._cache.pop(k)
377 self.results.append(CacheData(k, dsk[k], metric, start, t))
378
379 def _finish(self, dsk, state, failed):
380 t = default_timer()

Callers

nothing calls this directly

Calls 2

popMethod · 0.80
keysMethod · 0.45

Tested by

no test coverage detected