One other alternative is to use javascript to hit the page every X seconds
until your job is done. My bank actually does this to route me through a
number of servletts before showing my  account summary. However, the control
is now on the client's browser, which of course comes with all of the
typical issues associated with doing things this way. Just throwing some
ideas out there.

Adam.



-----Original Message-----
From: Adrian Cesana [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, January 29, 2002 1:56 PM
To: CF-Talk
Subject: pausing


I have a template that updates a few records then a backend process grabs
the information and also performs an update.  The backend process usually
takes between 5-20 seconds.  Whats the best method of pausing?  I want to
pause for 5 seconds issue a message and then after 5 seconds run query to
see if the backend process completed, if NO issue another message, pause
again for 5 etc..  Ill do this up to 30 seconds if no response than I will
end the pause/loop and issue a message.

I was thinking about just running a cfloop but I am told this will pin my
CPU at 100%.  There is a CFX_sleep I see, anyone use this? is it production
safe?

Thanks,Adrian

______________________________________________________________________
Why Share?
  Dedicated Win 2000 Server � PIII 800 / 256 MB RAM / 40 GB HD / 20 GB MO/XFER
  Instant Activation � $99/Month � Free Setup
  http://www.pennyhost.com/redirect.cfm?adcode=coldfusionc
FAQ: http://www.thenetprofits.co.uk/coldfusion/faq
Archives: http://www.mail-archive.com/[email protected]/
Unsubscribe: http://www.houseoffusion.com/index.cfm?sidebar=lists

Reply via email to