I'm creating a scheduled_task to correct a problem.  For the correction, I'm 
doing a query for the list of problem records.  Then I'm looping through the 
problem records and resending each one of them through the same code that it 
went through when it developed the problem.  That code has several database 
updates.  

Unfortunately, I'm timing out of the cfloop.  I don't have access to the page 
that I'm looping through, so I can't change it.

Is there a way to let a loop have other transactions so that it doesn't time 
out?  I thought of putting the loop in another loop, so that it only does 5 at 
a time, but then that's just a loop in a loop and then the outer one will time 
out.

Did I state this clearly?

A friend of mine suggested the line:
cfsetting requestTimeOut = "120”
I am told that this setting will only be persistent for that page and that the 
timeout will revert to it's previous setting once the page is done running.  Is 
that correct?  I was also concerned that when CF is upgraded (we're on CF7 for 
this app) that this setting might be trouble.  Any thoughts?  Overall, I'd like 
a different solution than this, something that will make the loop more 
acceptable.

thank you for any assistance.

daniel

~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
Order the Adobe Coldfusion Anthology now!
http://www.amazon.com/Adobe-Coldfusion-Anthology/dp/1430272155/?tag=houseoffusion
Archive: 
http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:345801
Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm

Reply via email to