Why is there a limit on delayed calls such as asyncio.call_later to not exceed one day?

https://docs.python.org/3/library/asyncio-eventloop.html#delayed-calls

Note. Timeouts (relative delay or absolute value) must not exceed one day.

Does anyone have a good explanation as to why this limit exists?

Thank you in advance

+3


source to share


1 answer


This is related to question 20493 :

In asyncio, if the next event is 40 seconds in advance, epoll.poll () raises an OverflowError because the maximum epoll_wait () value for a timeout is INT_MAX seconds.

Guido van Rossum suggested that:



Currently, we can just add to the asyncio docs that timeouts should not exceed one day? Then we can fix it later without breaking expectations.

Your best bet is to read the full error log for all details and considerations.

+7


source







All Articles