mindspore.dataset.config.get_multiprocessing_timeout_interval

mindspore.dataset.config.get_multiprocessing_timeout_interval()

Get the global configuration of multiprocessing/multithreading timeout when main process/thread gets data from subprocesses/child threads.

Returns

int, interval (in seconds) for multiprocessing/multithreading timeout when main process/thread gets data from subprocesses/child threads. Default: 300s.

Examples

>>> # Get the global configuration of multiprocessing/multithreading timeout when main process/thread gets data
>>> # from subprocesses/child threads. If set_multiprocessing_timeout_interval() is never called before, the
>>> # default value(300) will be returned.
>>> multiprocessing_timeout_interval = ds.config.get_multiprocessing_timeout_interval()