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

Any alternative beside CF Administrator scheduled task?

Guest
Sep 06, 2010 Sep 06, 2010

My scheduled tasks unable to run on CF9 but when I browse in IE it's working fine.

I believe CF9 scheduled task very sensitive on the code as I tried to remarks on some coding its working fine.

When I removed the remarks it unable to process.

Any help on this? Is there any other way to run a schedule without using CF Administrator?

Best regards,
Eric

1.6K
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
Community Expert ,
Sep 06, 2010 Sep 06, 2010

Eric, is there any chance that the page you're running successfully in IE works because you were prompted at some point for a web server username/password? The browser will cache that for subsequent requests. If the page requires such security, you must specify it in the scheduled task definition.

There is also available logging of scheduled tasks (on the Logging Settings page in the CF Admin), which creates a new log in the \logs directory (also accessible from the CF Admin Log Files page), which may give you more insight into what's not working.

Finally, yes, you could always an alternative to CF's scheduled tasks, in the Windows scheduled task feature (available in all versions of Windows). The problem is how to execute a CFML page. There used to be a cfml.exe program in the \bin (prior to CF 6) that allowed you to execute CFML pages from the command line. That's no longer offered.

But you could call the pages using a command-line equivalent of a browser. One such solution is wget. I did a blog entry on this several years ago when I worked with BlueDragon, but the concept applies just as well to CF:

http://bluedragon.blog-city.com/executing_cfml_from_the_command_line_or_where_did_cfmlexe_go.htm

Others may have still other suggestions.

But really, see first if you can in fact get it to work as a CF scheduled task. There's usually an explanation and a solution. Hope that helps.

/charlie

Providing CF troubleshooting services at carehart.org/consulting

charlie@carehart.org


/Charlie (troubleshooter, carehart. org)
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
Guest
Sep 06, 2010 Sep 06, 2010

Hi Charlie,

Yes, I did insert username/password on the scheduled task.

The funny things is working fine after the server fresh restart and 2-3 hours later thing doesnt work anymore.

I am suspecting server out of memory and most of the scheduled task are for SFTP.

Thanks again.

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
Community Expert ,
Sep 06, 2010 Sep 06, 2010

Again, enable the scheduled task logging to see if it offers any more info.

/charlie


/Charlie (troubleshooter, carehart. org)
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
Guest
Sep 07, 2010 Sep 07, 2010

Hi Charlie,

I checked it something to do with low memory.

As my scheduled tasks running SFTP with many huge txt files and most of them is timeout before finishing the job.

Once 2-3 hours later, the CF unable to run any scheduled tasks. When I restart the server everything back to normal.

Previously CF6.1 using same SFTP doesnt have any of these problems.

Server hardware previously:
WIN2K

qual core 3.20 ghz

4gb of ram.

CF6.1

New server:

WIN2K3

dual core 2.4

4gb of ram

cf9.01

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
Enthusiast ,
Sep 07, 2010 Sep 07, 2010

Hi!

You're using the native SFTP support in CF or a third party library ?

--

Mack

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
Guest
Sep 07, 2010 Sep 07, 2010

Hi Mack_,

I am using third party which i got it around 2006/07 for CF6. which was working fine but it gave me hell on CF9.

I am looking for new alternative this SFTP, i am trying using native cfftp and i hope it will help me.

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
Contributor ,
Sep 15, 2010 Sep 15, 2010
LATEST

Obviously it is timing out trying to load the huge files causing the scheduled task to fail. You can alter your timeout settings to see if that helps. You may want to change over to CFFTP. ColdFusion likes its own programs better usually.

If the scheduled task is not starting at all then it is a permissions problem. Usually you want a local user that is unique to CF for it to run scheduled tasks.  Lockdown your scheduled task folder so only the local server can access the scheduled tasks. (Security should ALWAYS be at the top of your mind).

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