I see that there are default schedule event where you can place long running methods like daily_long and hourly_long, but how do you increase the timeout for custom cron methods as in the example above?
I developing a frappe synchronize apps between erpnext and financial system. However, due to the large record need to be synced, the sync often crash at 300 second with error: JobTimeoutException: Job exceeded maximum timeout value (300 seconds).
When I execute from bench it’s ok, the system don’t drop the sync def. However, when use Scheduler, even I edit the supervisor.cfg, the problem still the same.
Can you let me know is there anyway to execute the function without timeout or lon…
Here’s the background.py code based on the linked thread but it does seem like it’s the code for timeouts for methods being run using enqueue and not for scheduler events.