tracker issue : CF-3135620

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

Scheduler Admin API Needs Additional getTasks() Method

| View in Tracker

Status/Resolution/Reason: Closed/Fixed/

Reporter/Name(from Bugbase): Rob Bilson / Rob Bilson (Rob Bilson)

Created: 03/12/2012

Components: Administrator

Versions: 10.0

Failure Type: Enhancement Request

Found In Build/Fixed In Build: Public Beta /

Priority/Frequency: Trivial / Unknown

Locale/System: English / Platforms All

Vote Count: 1

Listed in the version 2016.0.0.297996 Issues Fixed doc
Verification notes: verified_fixed on July 23, 2017 using build 2016.0.01.298513
I want to build some functionality that hooks into the ColdFusion Scheduler API, however several methods I need do not exist in the API.  As a workaround I have to read in the neo-cron.xml file (this won't work for clustered tasks stored in a DB, either) and create my own custom functions to get the data I need.  Specifically, I'm looking for a getTasks() function that acts like the getDatasources() function in the datasource API.  The function would look like this:

public any getTasks ( taskName )

Returns a structure containing all scheduled tasks or a specified task.

Output: suppressed
   taskName: any, optional, taskName- The name of the scheduled task for which a structure is returned.

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

Watson Bug ID:	3135620

External Customer Info:
External Company:  
External Customer Name: Rob Brooks-Bilson
External Customer Email:  
External Test Config: My Hardware and Environment details:



We do have the list action on cfschedule tag which can be used for this purpose.
Comment by Himavanth R.
20124 | March 13, 2012 01:19:51 AM GMT
Deferring it since we already have a simple work around to get the task details.
Comment by Rupesh K.
20125 | March 13, 2012 08:25:10 AM GMT
I missed the new action="list" for cfschedule. That's a decent workaround for now. I'd still like to see it added to the admin api at some point, though.
Comment by External U.
20126 | March 16, 2012 06:02:39 PM GMT
+1, but it should return a query (IMO) just like <cfschedule action="list"
Vote by External U.
20129 | March 17, 2012 04:45:35 AM GMT
findtask mehthod was already there. Added gettasks method also, which will return all the tasks
Comment by Uday O.
20127 | November 21, 2014 04:19:39 AM GMT
Verified this is fixed in CF2016 Update 1 (build 2016.0.01.298513). Thanks!, -Aaron
Comment by Aaron N.
20128 | July 23, 2017 01:23:46 AM GMT