• Global community
    • Language:
      • Deutsch
      • English
      • Español
      • Français
      • Português
  • 日本語コミュニティ
    Dedicated community for Japanese speakers
  • 한국 커뮤니티
    Dedicated community for Korean speakers
Exit
0

PLEASE HELP!!! I'M GOING TO BE FIRED

Guest
Feb 02, 2007 Feb 02, 2007

Copy link to clipboard

Copied

PLease help.

I run a cfm page every 2 minutes to check a RSS feed for certain parameters and if they are found, it will send out an email.

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.

Does anyone have any idea??? Thanks
TOPICS
Advanced techniques

Views

648

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
LEGEND ,
Feb 02, 2007 Feb 02, 2007

Copy link to clipboard

Copied

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.

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Participant ,
Feb 02, 2007 Feb 02, 2007

Copy link to clipboard

Copied

Please post exactly the settings you have for the task.

Also, the extension IS .cfm, right? :-)(Just checking)

Also, what CF version, etc.

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Guest
Feb 02, 2007 Feb 02, 2007

Copy link to clipboard

Copied

thanks for responding. Yes it is a .cfm page.

We're running Windows 2000 Server with ColdFusion 5.

Thanks

I copied the page here:




Task Name
Duration Start Date End Date (optional)

Schedule to Run Note: The Scheduler checks for newly scheduled tasks every 1 minutes.

One-Time at
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

URL
(add a trailing slash for domain-level links, such as http://www.macromedia.com/)
Username
Password
Request Timeout seconds

Proxy Server
Proxy Port
Publish Save output to a file

Path
File
Resolve URL Resolve internal URLs so that links remain intact

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Participant ,
Feb 02, 2007 Feb 02, 2007

Copy link to clipboard

Copied

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?

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Guest
Feb 02, 2007 Feb 02, 2007

Copy link to clipboard

Copied

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

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Explorer ,
Feb 02, 2007 Feb 02, 2007

Copy link to clipboard

Copied

LATEST
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.

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Resources
Documentation