A couple of options come to mind...
 
- use <cfsetting requesttimeout = XXXXX> on the task page before the code...
  that should override setting in administrator - that's the only way I can
think
  of to override the administrator default

- use cfthread to run your tasks in the browser - cfthread allows the
browser
  to finish it's handling of the code while cfthread continues the
processing.
  The drawback to this method is that the browser doesn't show when the task
  run by cfthread is complete.  You'll have to use another method besides
  feedback in the browser to determine completion.  Another positive with
this
  approach, besides getting around browser timeout, is that you can spawn
  multiple threads to run simultaneously.  (Making sure they're no
co-dependent...in
  that case, you'd need to set up a series of "don't run the next thread
until this
  one finishes.  I do this every day with about 40 tasks processing data
sequentially
  (But my threads are run in the task scheduler...you could do the same
thing from
  a browser)

Question:  do the tasks have to be triggered manually from the browser for a
reason
other than running them sequentially?

-----Original Message-----
From: Earl, George [mailto:george.e...@ssa.gov] 
Sent: Wednesday, October 28, 2009 8:42 AM
To: cf-talk
Subject: Scheduled tasks timeout vs. server timeout


We need to be able to manually run scheduled tasks that take longer to
complete than our server timeout setting. 

By 'manually run' I mean by entering the URL for a scheduled task into
the address bar of our browser or by clicking on links to a scheduled
task (because we have limited access to CF Administrator). 

I understand that the timeout setting for scheduled tasks overrides the
server timeout setting but I assume that works only when the task is run
by the CF scheduler or by running it manually from within the CF
Administrator, is this correct?

If we run a scheduled task manually as described above is
cfsetting\requestTimeout in the code our only recourse for overriding
the server timeout setting?

Thanks!

George Earl
IT Specialist
DCS\OEEAS\DIIS\WMSDB
410 965-5198





~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
Want to reach the ColdFusion community with something they want? Let them know 
on the House of Fusion mailing lists
Archive: 
http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:327790
Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4

Reply via email to