set_queue_timeout#

ivy.set_queue_timeout(timeout)[source]#

Set a timeout value (in seconds) for the global queue.

Set the global queue timeout value (in seconds) Default value without this function being called is 15 seconds.

Parameters:

timeout (float) – The timeout when waiting for containers to arrive from the queues. To be set in seconds.

Examples

>>> x = ivy.set_queue_timeout(10)
>>> x = ivy.queue_timeout
>>> print(x)
10.0
>>> ivy.set_queue_timeout(30)
>>> y = ivy.queue_timeout
>>> print(y)
30