mindspore.dataset.config.get_callback_timeout

mindspore.dataset.config.get_callback_timeout()

Get the default timeout for WaitedDSCallback.

Returns

int, Timeout (in seconds) to be used to end the wait in DSWaitedCallback in case of a deadlock.

Examples

>>> # Get the global configuration of callback timeout.
>>> # If set_callback_timeout() is never called before, the default value(60) will be returned.
>>> callback_timeout = ds.config.get_callback_timeout()