<cfschedule> pause, resume, and delete not working

Community Beginner ,
Aug 26, 2013 Aug 26, 2013

Copy link to clipboard

Copied

I am running CF10 fully updated (10,0,11,285437) and I cannot get the <cfschedule> tag pause/resume to work properly.  This is what I noticed at first, then I realized later the delete does not work either.  I always get:

The following task could not be found: myTask.

I am running CF10 64bit and Apache 2.2 (32bit) on Windows Server 2008 R2 and I am running virtual hosts under a single IP.  The <cfschedule> 'update' and 'list' tags work just fine as well do the 'pauseAll' and 'resumeAll' for groups.  I unfortunately do not have another 64bit server to attempt setting this up on again and verify the issue.  I'm hoping someone else can give me some ideas on where to go next here, because I really need to use this functionality and I've already had 1 other person tell me it works for them under CF10.

Please, any help or suggestions on what to try would be really appreciated.

Here's a paste of my sample code that breaks.

<cfschedule action="update" task="myTask" group="myGroup" mode="application" interval="300" requesttimeout="60" startdate="01/01/2000" starttime="00:00:00" url="http://www.google.com" />

<cfschedule action="list" mode="application" result="tasks" />

<cfquery name="tasks" dbtype="query">

          SELECT * FROM tasks

          WHERE lower(task) = <cfqueryparam value="#lcase('myTask')#" cfsqltype="cf_sql_varchar" />

</cfquery>

<cfdump var="#tasks#" /><br /><br />

<cfschedule action="pauseAll" group="myGroup" mode="application" />          <!--- Works --->

<cfschedule action="resumeAll" group="myGroup" mode="application" />          <!--- Works --->

<cfschedule action="pause" task="myTask" />          <!--- Fails --->

<cfschedule action="delete" task="myTask" />          <!--- Fails --->

Thanks in advance,

Daniel

Views

1.3K

Likes

Translate

Translate

Report

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

correct answers 1 Correct Answer

Community Beginner , Sep 03, 2013 Sep 03, 2013
So, it turns out if you use 'mode' or 'group' attributes, you must have them to pause, resume, and delete the task, even if you are referencing them by thier name.  Once I added 'mode' and 'group' it started working.

Likes

Translate

Translate
Community Beginner ,
Sep 03, 2013 Sep 03, 2013

Copy link to clipboard

Copied

So, it turns out if you use 'mode' or 'group' attributes, you must have them to pause, resume, and delete the task, even if you are referencing them by thier name.  Once I added 'mode' and 'group' it started working.

Likes

Translate

Translate

Report

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 Beginner ,
Dec 30, 2020 Dec 30, 2020

Copy link to clipboard

Copied

And 7 years later I stumbled on this and it saved my day!

Likes

Translate

Translate

Report

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
Adobe Community Professional ,
Dec 30, 2020 Dec 30, 2020

Copy link to clipboard

Copied

LATEST

Hey, Steve, can you report what version of CF you are on? Am just curious if this solution is still needed in CF2018 (or 2016 or 2021 or 11), versus what Daniel reported here back in 2013 and CF10. (To be clear, I have not tested it and just thought it would be faster to ask then to set about doing that in the different versions.)

 

Thanks.


/Charlie (server troubleshooter, carehart.org)

Likes

Translate

Translate

Report

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