Class ThrottledGC

Wrap gc.collect to protect against excessively repeated calls.

Declaration

class ThrottledGC
source link

Documentation

Allows to run throttled garbage collection in the workers as a
countermeasure to e.g.: https://github.com/dask/zict/issues/19

collect() does nothing when repeated calls are so costly and so frequent
that the thread would spend more than max_in_gc_frac doing GC.

warn_if_longer is a duration in seconds (10s by default) that can be used
to log a warning level message whenever an actual call to gc.collect()
lasts too long.

Methods

Reexports