I get error like this, but i have a hard function, which execute for ~1 minute. I set timeout 120sec in console. But I read that synchronous executions has max timeout 30sec. How can I execute my python function async?
TL;DR
Title: 'Operation timed out' error when trying to execute a lengthy function
Developers are experiencing an error where their function times out after 30 seconds, even though they have set the timeout to 120 seconds in the console. They want to know how to execute their Python function asynchronously.
Solution: To execute the Python function asynchronously, developers can use asynchronous programming techniques such as using the asyncio library or implementing multi-threading. This allows the function to run in the background while other code continues to execute. Additionally, they can consider optimizing the function to reduce its execution time and improve efficiency.