This content has been marked as final. Show 6 replies
The problem is that nothing happens when the scheduled tasks are run and
I know the conditions are there. However, when I enter the URL of the
task in a browser and run it manually, it works.
The first thing I check when this happens is user permission. When you
enter the URL in the browser it uses YOUR permissions to access the
resource. When the scheduled task runs, it runs with a built in browser
that uses the LOG ON AS user account defined in the services panel.
(This is all windows based, I do not have knowledge how this works on
other OS systems). By default this account is "localSystem" which has
NO permissions to resources not on the local system, by default.
To find out what is happening with your Scheduled Task, check the
"Publish" parameter on the Schedule Task definition form, and provide a
path in the "File" parameter. This will store a copy of exactly what
the scheduled task receives when it is run. Run the task and see what
is in this file.
Please post exactly the settings you have for the task.
Also, the extension IS .cfm, right? :-)(Just checking)
Also, what CF version, etc.
thanks for responding. Yes it is a .cfm page.
We're running Windows 2000 Server with ColdFusion 5.
I copied the page here:
Duration Start Date End Date (optional)
Schedule to Run Note: The Scheduler checks for newly scheduled tasks every 1 minutes.
Schedules to run the task once on the Start Date and scheduled time. The date and time must be set at least 15 minutes in the future in order for the task to execute successfully.
Recurring DailyWeeklyMonthly at
Schedules tasks which occur once every day, week or month for the duration of the task. The scheduling begins on Start Date and occurs every scheduled day at the specified time.
Daily every minutes, from to
Schedules the task to repeat multiple times every day during a specific time period. Specify the daily start and end times. The duration of the scheduling of this task is still governed by Start and End Date.
Operation HTTPRequest Port
(add a trailing slash for domain-level links, such as http://www.macromedia.com/)
Request Timeout seconds
Publish Save output to a file
Resolve URL Resolve internal URLs so that links remain intact
Which of the schedule types list in your post did you choose?
Daily every xx minutes would be fine, BUT:
It's easy to get into trouble if the "start time" and "end time" are not "logical".
Also, does the task show as being run in the log files? Are there any errors in the log?
I have the task running daily every 4 minutes.
Times I have as 01:00:00 to 23:59:00
I show the logs noting 200 Success. No errors
A couple of things to check:
-Have you checked your web server logs?
-Are you saving the output of the scheduled page to a file? I typically have a few strategic cfoutputs in a scheduled page and write it to a file. This allows you to view the results of the page. You could always create a log, but this is easy and built in to the scheduler.