cf.open_files_threshold_exceeded

cf.open_files_threshold_exceeded()[source]

Return True if the total number of open files is greater than the current threshold.

Deprecated at version 3.14.0 and is no longer available.

The threshold is defined as a fraction of the maximum possible number of concurrently open files (an operating system dependent amount). The fraction is retrieved and set with the of_fraction function.

Returns
bool

Whether or not the number of open files exceeds the threshold.

Examples

In this example, the number of open files is 75% of the maximum possible number of concurrently open files:

>>> cf.of_fraction()
0.5
>>> cf.open_files_threshold_exceeded()
True
>>> cf.of_fraction(0.9)
>>> cf.open_files_threshold_exceeded()
False