Copy link to clipboard
Copied
Copy link to clipboard
Copied
Copy link to clipboard
Copied
Copy link to clipboard
Copied
Copy link to clipboard
Copied
Copy link to clipboard
Copied
I have that same issue. I do not have CF8 running at the same time but I did upgrade from CF8. Is there some way to manually remove all registry entries and remaining artifacts from CF8 in case that is doing it?
Copy link to clipboard
Copied
Thishas been a thorn in my side for a while, and it is extremely difficult to trace or debug. I know for sure that I only have one instance of CF9 running, and I look at the log files and only see information for one copy of a task being started and stopped, but I look at the results of the task (database info, etc) and sometimes see multiple (2x or 3x) set of data all inserted at exactly the same time. Only happens on some tasks, not all. Doesn't happen all the time or every time. Only happens on the server that is still running CF8. The CF9 machines (as far as I know!) are not showing this problem. If anyone has any ideas for tracking down the problem beyond what I talked about above, that would be great. I have even sat at my PC glued to perfmon showing CF activity while someone else kept firing off the scheduled task that usually shows the problem, and he would see it do the 2x or 3x executions, and I would never see the number of active CF tasks go up by more than 1. Reboots of CF and/or the server do not have any effect. Windows task manager only shows one copy of CF server running. If Windows or Java is running more than once copy of the CRON process/thread I don't know how to determine that. problem will become academic at some point because I'm working on getting the CF9 licenses to upgrade the remaining CF8 servers. Sorry for the stream-of-consiousness post, will work on my prose skills next time.
thanks in advance,
-reed
Copy link to clipboard
Copied
I meant to say that I only have one instance of CF8 running (not CF9)
Copy link to clipboard
Copied
This does not address the real problem of whatever is spawning your task twice but it will prevent the side effects:
<cfset variables.doAbort=false />
<cflock timeout="15" throwontimeout="yes" type="exclusive" scope="application">
<cfif isDefined("application.autoRun")>
<cfset variables.doAbort=application.autoRun GT now() />
</cfif>
<cfif not variables.doAbort>
<cfset application.autoRun=dateAdd("n",10,now()) />
</cfif>
</cflock>
<cfif variables.doAbort>
<cfabort showerror="Process aborted due to 10 minute auto close moratorium. (authRun=#application.autoRun#)" />
</cfif>
Copy link to clipboard
Copied
Thanks Steve. where would this go, in each of my scheduled
cfms or in an application .cfm/cfc somewhere?
Copy link to clipboard
Copied
I put it in the begining of the template being executed in the scheduler. But anywhere prior to execution of the "real work" that the scheduled task to doing.
Copy link to clipboard
Copied
Also, in my code the variable name is dynamic based on the task that is running. Instead of application.autoRun, I set variables.taskName="something" and then adjust all the application.autoRun statements: application[variables.taskName] or isDefined("application.#variables.taskName#")...
With a little thought, this can be tweaked to be a taskName URL parameter:
<cfif isDefined("URL.taskName:)>
<!-- code from above tweaked to used URL.taskName --->
</cfif>
Then this could be put in your application.cfc.
Copy link to clipboard
Copied
Steve,
Thanks a million! This was the solution to get me working at least as I still have not heard from Adobe since I gave them my credit card for a new incident. Our helpdesk people would not be allowed to take that long to contact a user.
My problem was that in the course of doing file operations the hidden task was trying to access the file while the configured task had it and errors, file deletions and utter mayhem ensued. I just set your value of 10 minutes to 5 minutes which fit in my scheduled task window and all of that stopped cold.
I appreciate all of the assistance with this.
Mike Besemer
MiTek Industries Inc.
Copy link to clipboard
Copied
Very cool. I sometimes get lucky with my advice.
Copy link to clipboard
Copied
Mike - Did you ever get resolution on this issue? We just started seeing this same problem as of September 14 and we are definitely not running multiple instances nor are there multiple CF services running on the same machine. The server had run for months without this behavior, and then it suddenly started last week. Any information you can share on the resolution of the problem would be appreciated.
brian
Copy link to clipboard
Copied
I am running CF9 and I have the issue as well. I have a helpdesk ticket open with Adobe on this and are wating for the call. They said they would call in approx one hour and that was about 2.5 hours ago. I guess that is why they make you pay first. I will post the answer if there is one.
Copy link to clipboard
Copied
In my case the scheduled task run twice within some milliseconds (sometimes the exact millisecond!)
Then I logged IP number and the duplet tasks was run from another IP.
Turned out our internet service provider had some redundat server set up that had kicked in, and somehow the "redundant" CF instance continued to run, even after our primary server kicked in again.
I put this code in some of my scheduled task, that really helped me!
<cflog file="myTasks" text="#GetCurrentTemplatePath()# Tickcount:#GetTickCount()# userAgent:#cgi.HTTP_USER_AGENT# IP:#cgi.REMOTE_ADDR#">
Then you go to CF Admin and find your myTasks.log at "Log files". Check that IP