|
|
Question : Cron Job Queue?
|
|
I wanted to know how to queue cron jobs with a general linux based system. I have all the crons in a nice little file, but if too many run at once, they start getting blogged up, and it lags the server resulting in me having to restart after some time.
I wanted to know if theres a way to have it do like.. 3 crons at a time max and queue the rest? Possible another php script that could do it thats our there? (Searched with no luck), or maybe even the general cron job application can do it, I'm not really sure. But I need to figure out a way so that it doesn't eat my server alive! Looking for any suggestions really.
Thanks!
|
Answer : Cron Job Queue?
|
|
Not sure what is the best way for your problem. You might open a browser page with javascript enabled in the browser.
Your page will load and run the php script. Once the run is over, the page is "complete" and does not crash against the run-time limit of php. Then your javascript wait say 5 minutes (this will happen on the client, not on the server), then reload the page which will in fact re-trigger the script.
SO that you can see that the run is alive, you might display the times and number of searches over the last hour..
|
|
|
|
|