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

Scheduled Tasks dont work at all!!!! CF8

New Here ,
Sep 16, 2008 Sep 16, 2008
I am using CF8 with 8.0.1 update. I have been using CF for about 4 years now and am very familiar with using the scheduled tasks from the CF Admin. This is my first time however using the scheduled tasks in CF8. I cannot get it to work at all. The role of my CF page is to query a database and create pdf reports. If you execute the CF page manually it works without any issues. If you try to schedule it the scheduled task does not even try to run. If you manually execute the task through the CF Admin it says that the task was processed successfully and it is immediate. With no hesitation you will get a successfull message but that is impossible because it takes at least 15 - 20 seconds to run the page manually and of course, there is no result after the task says it was ran. I have looked at authentication, timeout, etc. What gives? I have even tried simple tasks like "Hello World" type pages and nothing. I love CF8 but this task thing is a must, I need this! Please help!
608
Translate
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 ,
Sep 16, 2008 Sep 16, 2008
It ain't CF8. I run schedule tasks all day long on my CF8 with no problem.

Are you capturing the output of the Schedule Task? If so what is that
output. Is it perchance some type of http error?

95.673% of the time I have seen "...If you execute the CF page manually
it works without issues. If you try to schedule it the task does not
even try to run..." The problem has been a web site configured to use
'Integrated Windows Security' in IIS. Of course since ColdFusion does
not use a Windows browser to make the http request for the schedule
task, it can not access such resources.

Translate
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
New Here ,
Sep 16, 2008 Sep 16, 2008
Thanks for the reply. Yes I thought of that too, the "Intergrated Windows Security" thing. I had no issues in the past using Windows Security but maybe there is something new with CF8. I will try turning it off.
Translate
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 ,
Sep 16, 2008 Sep 16, 2008
BLEEDGRN wrote:
> Thanks for the reply. Yes I thought of that too, the "Intergrated Windows
> Security" thing. I had no issues in the past using Windows Security but maybe
> there is something new with CF8. I will try turning it off.
>

No, ColdFusion has never worked with "Windows Integrated Security". It
is not a Windows product and can not pass the proprietary HTTP response
and request headers that make integrated security work. I have seen
this issue bite developers since I started using ColdFusion in version
4.5. ColdFusion can only work with 'Basic' security or anonymous.

The caveat is that you can turn off windows integrated security
granularly to an individual folder or even down to an individual file.
So you can have Integrated Security on most of your web site, but turn
it off for a specific folder or file used for schedule tasks.

Translate
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
New Here ,
Sep 18, 2008 Sep 18, 2008
LATEST
I have a similar problem - a scheduled task that will run when I execute it in my browser. But from scheduled tasks it only outputs "Connection Failure" to the output file. But when I set up a scheduled task to a page that does not require CF, it works (output file contains http text).
I have turned off Integrated Windows Authentication and enabled anonymous access as indicated here, and restarted IIS. But that did not resolve it.
Need help on this please.
Translate
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
New Here ,
Sep 16, 2008 Sep 16, 2008
That fixed it! It was the Windows Intergrated Security. If you enable Annonymous Logins it fixes it. Thanks!!!!!!
Translate
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