tracker issue : CF-3148759

select a category, or use search below
(searches all categories and all time range)
Title:

CF9 vs CF10 wrt getCronService().findTask()

| View in Tracker

Status/Resolution/Reason: Closed/Won't Fix/Workaround

Reporter/Name(from Bugbase): Aaron Neff / Aaron Neff (Aaron Neff)

Created: 03/25/2012

Components: Scheduler

Versions: 10.0

Failure Type:

Found In Build/Fixed In Build: Public Beta /

Priority/Frequency: Normal / Few users will encounter

Locale/System: English / Win All

Vote Count: 0

In CF9.0.1, getCronService().findTask() included three 3 fields which CF10 doesn't:

- disabled
- operation
- paused

While CF10 does add <cfschedule action="list", that doesn't work in cfscript.

Should the "paused" field be included back into CF10? There is probably script code relying on that.

----------------------------- Additional Watson Details -----------------------------

Watson Bug ID:	3148759

External Customer Info:
External Company:  
External Customer Name: itisdesign
External Customer Email:

Attachments:

Comments:

Related thread: http://prerelease.adobe.com/r/?95875d918a9e4c87bb39b5046c5daed2
Comment by External U.
19899 | March 25, 2012 05:46:47 AM GMT
I see this is marked Closed/NeverFix/Workaround. What is the script-CFC workaround? Is there a script-equiv of <cfschedule action="list"?
Comment by External U.
19900 | March 26, 2012 03:43:39 AM GMT
Following code can be used to find the status of a task. obj = new CFIDE.adminapi.scheduler(); taskdetails = obj.findTask("apicheck","DEFAULT","server"); writeOutput("<b>TaskName,Status,Chained</b><br>"); writeOutput(" #taskdetails.task#, #taskdetails.status#, #taskdetails.chained#<br>");
Comment by Himavanth R.
19901 | March 26, 2012 03:48:51 AM GMT
Thanks for that. But shared hosts disallow Admin API. Not sure why CF10 removed the "paused" field, as it may cause a problem for some people. getCronService().findTask() returns all the other necessary fields, except for "paused"..
Comment by External U.
19902 | March 26, 2012 04:06:03 AM GMT
Btw, Himavanth, thanks very much for allowing Admin API's findTask() to return details. Very cool! Thanks again, -Aaron
Comment by External U.
19903 | March 26, 2012 04:07:14 AM GMT