You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
An idea for a future improvement.
Years ago something similar has been suggested by somebody else for pytube.
Simple operations sometimes take a lot of time to be completed. In many cases is easier just cancel and run again, to get the result very fast.
Nowadays I am using the library func-timeout to limit the execution time for a given operation and backoff to retry. This works, but is not very convenient as it needs additional functions to keep the processing under control.
timeout is supported by requests, so likely not very hard to implement.
Here an example of how the code with timeout can be:
An idea for a future improvement.
Years ago something similar has been suggested by somebody else for pytube.
Simple operations sometimes take a lot of time to be completed. In many cases is easier just cancel and run again, to get the result very fast.
Nowadays I am using the library func-timeout to limit the execution time for a given operation and backoff to retry. This works, but is not very convenient as it needs additional
functions
to keep the processing under control.timeout
is supported byrequests
, so likely not very hard to implement.Here an example of how the code with timeout can be:
The text was updated successfully, but these errors were encountered: