mindspore.dataset.config.get_multiprocessing_timeout_interval

mindspore.dataset.config.get_multiprocessing_timeout_interval()

获取在多进程/多线程下,主进程/主线程获取数据超时时,告警日志打印的时间间隔的全局配置。

返回:

int,表示多进程/多线程下,主进程/主线程获取数据超时时,告警日志打印的时间间隔(默认300秒)。

样例:

>>> # 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.
>>> import mindspore.dataset as ds
>>> multiprocessing_timeout_interval = ds.config.get_multiprocessing_timeout_interval()