If the tasks can be run independantly, seperate the long processes into their own crons.
Otherwise your just going to have to wait. For the example of sms, I assuming that you have a task that sends an sms on completion or on some conditions. Instead of sending them straight away, log them to a db or file and have a seperate cron fire up say 30 mins after the first one to run through the sms queue. Geoff -- http://lemoncake.wordpress.com On Jul 11, 9:05 am, "John David Anderson (_psychic_)" <[EMAIL PROTECTED]> wrote: > On Jul 9, 2007, at 11:45 AM, zipman wrote: > > > > > > > I have a controller that inside I have placed actions that are called > > through cron > > by using curl ( or lynx) and the full url to the action. The problem > > is that some of > > these actions may take sometime to complete, eg. I contact a remote > > sms gateway > > to send an sms and if no connection is made I use sleep to try again > > after 5 seconds > > etc. > > When that happens, I cannot call any other action from any other > > controller, which makes > > my whole site completely unusable. I tried putting one of the action > > out of cakephp and that > > problem does not occur, but I don't want to do this as I use many of > > tha cakephp api functions > > inside these actions. > > > Any suggestions what I am doing wrong? > > Yeah: don't bump issues without providing more info, or rephrasing > the question. > > -- John --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Cake PHP" group. To post to this group, send email to cake-php@googlegroups.com To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/cake-php?hl=en -~----------~----~----~----~------~----~------~--~---