tracker issue : CF-4206295

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

Scheduled task does not output results correctly

| View in Tracker

Status/Resolution/Reason: To Fix//Investigate

Reporter/Name(from Bugbase): City A. / ()

Created: 12/09/2019

Components: Scheduler

Versions: 2018

Failure Type: Incorrectly functioning

Found In Build/Fixed In Build: 2018.0.06.316308 /

Priority/Frequency: Normal / All users will encounter

Locale/System: English / Win 2012 Server x64

Vote Count: 0

Problem Description: Scheduled tasks that exceed the global request timeout seconds will not save the results to an output file and will instead output "Connection Timeout".

Steps to Reproduce:

1.      Set the global “Timeout Requests after seconds” in the ColdFusion administrator to 60 seconds.
2.      Create a test.cfm file in the web root with the following code:
<cfsetting requesttimeout="70">
<cfset sleep(65000)>
<cflog text="Task ran successfully"
 <p>Task ran successfully</p>

3.      Visit the test.cfm file to confirm that the “Task ran successfully” paragraph is visible after the page loads, and that the “Test.log” file contains a similar entry.
4.      Create a new scheduled task in ColdFusion administrator:
5.      Set the URL to the test.cfm file created in step 2 (such as http://localhost/test.cfm)
6.      Check the box for “Save output to a file”
7.      Enter a log file location in the “File” box, such as “C:/CF2018/cfusion/logs/test.txt”
8.      Save the scheduled task
9.      Run the scheduled task from the ColdFusion administrator
10.      After 65 seconds, check the log folder for two files: Test.txt and Test.log
11.      Within the Test.log file, the text “Task ran successfully” should exist
12.      Within the Text.txt file, it will say “Connection Timeout”

Actual Result:
Within the Text.txt output file, it will say “Connection Timeout”

Expected Result:
Within the Text.txt output file, it should say “Task ran successfully”

Any Workarounds:
The task will run and complete successfully (assuming the cfsetting value is high enough), but the output from the page cannot be retrieved.