I recently migrated a legacy Windows 2003 Server running several ColdFusion 8 websites to a new Windows 2012 virtual server running ColdFusion 11. After much testing, everything is pretty much running smoothly, with one exception. I have a few Scheduled Tasks that are setup in ColdFusion Administrator with a "Timeout (in seconds)" value ("7200") that is greater than the "Timeout Request after seconds" value ("60") set in the Server Settings > Settings. When any of these Scheduled Tasks runs, they timeout at 60 seconds.
Is this a bug, a known issue, or expected behavior?
Will using CFSETTING with a "requesttimeout" value within the template file resolve this?
Eric, that is odd (that it's timing out like that). The whole point of the scheduled task timeout feature is to override that set in the admin.
So first, yes, if you did a cfsetting requesttimeout on the page that you call as a scheduled task, that should get you the same benefit. Had you tried it, and did it work?
And if it did (as I would expect), here's another possibility for what you were seeing: maybe the application.cfm (or cfc) that is controlling the page you were calling did itself have a cfsetting requesttimeout, or this.timeout (in application.cfc). THAT would indeed override the Admin setting, and would/could also override the scheduled task timeout (never thought about that before, and can't take time now to test it, but I'll be interested to hear if you or anyone else does).
Let us know if any of these explain what you are seeing. If not, one last thing to consider is whether you are on the latest available update for your CF11. Perhaps there was a bug at some point related to this.