portal entry

select a category, or use search below
(searches all categories and all time range)
Title:

CF2018 and requestTimeOut

| View in Portal
May 20, 2019 07:26:43 AM GMT
4 Comments
<p>Requestimeout in CF2018 using the scheduler</p>
<p>The post <a rel="nofollow" href="https://coldfusion.adobe.com/2019/05/cf2018-and-requesttimeout/">CF2018 and requestTimeOut</a> appeared first on <a rel="nofollow" href="https://coldfusion.adobe.com">ColdFusion</a>.</p>
Labels: CF2018 Updates, ColdFusion 2018, Question, 2018, cf2018 updates, coldfusion 2018, question

Comments:

<p>The requestTimeoutattribute of the cfschedule tag has been deprecated since CF 11. It was removed in CF 2018.  You can see that in the note on this documentation page:</p><p><a href="https://helpx.adobe.com/coldfusion/cfml-reference/coldfusion-tags/tags-r-s/cfschedule.html" rel="nofollow">https://helpx.adobe.com/coldfusion/cfml-reference/coldfusion-tags/tags-r-s/cfschedule.html</a></p><p>Without this attribute I believe the timeout falls back to the overall CF request timeout setting.  Of course you can override that timeout by adding a `<cfsetting RequestTimeout = “number_of_seconds”>` to the page that is being executed.</p>
Comment by Miguel Fernandez
2055 | May 20, 2019 02:27:05 PM GMT
It looks like amigaNOR was saying they had indeed already set the timeout on the page being called. What I find interesting is their assertion that that is not doing the job as it did in CF11. Can you confirm, amigaNOR, that a page running long in CF11, when called a a scheduled task without a timeout on the task, really would somehow timeout sooner in CF11 (when that page had a cfsetting requesttimeout on the page itself)? I would not expect it to be so. Maybe instead you're just recalling that it "seemed never to happen before" with CF11. But really, it would seem you should turn your attention to why the page is running long in CF2018. That's the real problem to solve. It is lamentable to some that the timeout was removed from scheduled tasks. But the fact that CF pages don't "end" when the requesttimeout is set (in the page or in the admin)  is not really new. I blogged about it several years ago: <a href="https://www.carehart.org/blog/client/index.cfm/2010/10/15/Lies_damned_lies_and_CF_timeouts" rel="nofollow">https://www.carehart.org/blog/client/index.cfm/2010/10/15/Lies_damned_lies_and_CF_timeouts</a>
Comment by Charlie Arehart
2056 | May 20, 2019 02:49:27 PM GMT
Sorry, Miguel. I meant my comment above to be a reply to yours. Somehow the UI here instead caused me to create it as a new comment.
Comment by Charlie Arehart
2057 | May 20, 2019 02:50:26 PM GMT
No worries Charlie.  I have had issues with the UI here as well.
Comment by Miguel Fernandez
2058 | May 20, 2019 03:07:58 PM GMT