Answer the question
In order to leave comments, you need to log in
Is there a limit on the execution time of a cron program?
Hello,
I wrote a program in java, I need it to be executed by cron. While reading this article , at the end I came across the fact that programs, when executed by cron, will have a time limit. And my program works out from about 30 minutes to 3-4 hours.
How can this problem be solved?
Thank you very much in advance!
Answer the question
In order to leave comments, you need to log in
If you are using a server from Masterhost or another provider, then you need to confirm with them.
But if you use your own server - by default there are no restrictions on the execution time of the process.
If the server belongs to you, then there is no restriction. It is important that your program does not get into a loop when the first has not yet ended, and the second has already begun.
For shared hosting , hosters are forced to limit the running time of cron jobs because they eat memory and often CPU and network sockets. But I doubt that there someone will allow you to run JAVA, especially in the crown! :)
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question