Skip to main content
This topic is closed to new replies. Start a new post to keep the conversation going.

12 replies

Charlie Arehart
Community Expert
Community Expert
Jan 2, 2013 12:11 AM UTC

Those who may want more information on the new scheduling feature in CF10 should see the corresponding chapter in the "Developing CF Apps" manual of the CF docs: http://help.adobe.com/en_US/ColdFusion/10.0/Developing/WSe61e35da8d31851899e53a51353e870493-8000.html

Translate
/Charlie (troubleshooter, carehart. org)
itisdesign_-_AH
Inspiring
Oct 4, 2012 1:34 AM UTC

The 'file' attribute's description should note: "The file can only have a .txt or .log extension by default. You can add more extensions in cfusion\lib\neo-cron xml."

This restriction is new in ColdFusion 10. ER #3336106 has been filed to also support .htm & .html extensions by default: https://bugbase.adobe.com/index.cfm?event=bug&id=3336106

Translate
Jun 28, 2012 7:24 PM UTC

Would be kind of helpful if you were just able to get the status of a scheduled task (on,off,paused...)

Translate
itisdesign_-_AH
Inspiring
Jun 29, 2012 8:57 AM UTC

@MrMJackson, here are some examples for returning a task's status (Running/Paused/Expired):

[cfschedule action="update" task="myTask" startdate="1/1/2014" starttime="12:00 AM" interval="monthly" url="http://a" /]

[cfschedule action="list" task="myTask" result="q1" /]

[cfdump var="#q1.status#" /]

[cfschedule action="pause" task="myTask" /]

[cfschedule action="list" task="myTask" result="q2" /]

[cfdump var="#q2.status#" /]

Returns: Running Paused

[cfschedule action="update" task="myTask" startdate="1/1/2011" starttime="12:00 AM" interval="once" url="http://a" /]

[cfschedule action="list" task="myTask" result="q3" /]

[cfdump var="#q3.status#" /]

[cfschedule action="list" result="q4" /]

[cfdump var="#q4.status#" /]

Returns: Running Expired

That should return "Expired Expired". I will file a bug.

Thanks,

-Aaron

Translate
Participant
May 29, 2012 10:19 AM UTC

it also looks like the "Group" property is required for deleting tasks

Translate
itisdesign_-_AH
Inspiring
Jun 29, 2012 8:19 AM UTC

@Lucas Sherwood, the group attribute is only required when deleting a task if the task isn't in the 'default' group. Examples:

(The group attribute is omitted in the 1st example, b/c the default value for the group attribute is 'default'.)

Thanks,

-Aaron

Translate
itisdesign_-_AH
Inspiring
Jun 29, 2012 8:23 AM UTC

It'd help if comments didn't hide code. Here are the examples again, just replace the square brackets w/ angle brackets:

[cfschedule action="update" task="myTask" startdate="1/1/2012" starttime="12:00 AM" interval="once" url="http://a" /]

[cfschedule action="delete" task="myTask" /]

[cfschedule action="update" task="myTask" startdate="1/1/2012" starttime="12:00 AM" interval="once" url="http://a" group="default" /]

[cfschedule action="delete" task="myTask" /]

Translate
itisdesign_-_AH
Inspiring
May 25, 2012 10:57 PM UTC

"isDaily" is not a valid attribute and should be removed from the attributes table.

Thanks,

-Aaron

Translate
itisdesign_-_AH
Inspiring
May 1, 2012 4:36 AM UTC

The "invokeHandler" should probably be removed from the "Default" column for onComplete, b/c onComplete does not have a default value.

Thanks,

-Aaron

Translate
itisdesign_-_AH
Inspiring
Apr 28, 2012 9:38 PM UTC

It might be helpful to add this note: "ColdFusion does not invoke Application.cfc methods, when invoking a task's event handler methods."

(This is by design, per: #3151858.)

Thanks!,

-Aaron

Translate
itisdesign_-_AH
Inspiring
Mar 22, 2012 2:46 AM UTC

Three more things:

1) The "Chained Task" feature should be documented.

2) The 'Required if action="update"' should be removed from the Req/Opt column for "Operation". This is b/c operation has a default value: HTTPRequest. Thus it is not required to pass this attribute.

3) The interval, startDate, and startTime attributes are no longer required for action="update" in CF10. If omitted, the task will become a chained task. So the 'Required if action="update"' should be removed from the Req/Opt column for each of these 3 attributes as well.

Thanks,

-Aaron Neff

Translate
itisdesign
Inspiring
Mar 22, 2012 1:51 AM UTC

The "result" attribute is undocumented. It is used for the list action. The result attribute should be documented in these 2 places:

1) "History" (ColdFusion Zeus: Added the attributes..)

2) Attributes table

Thanks,

-Aaron

Translate