• Global community
    • Language:
      • Deutsch
      • English
      • EspaƱol
      • FranƧais
      • PortuguĆŖs
  • ę—„ęœ¬čŖžć‚³ćƒŸćƒ„ćƒ‹ćƒ†ć‚£
    Dedicated community for Japanese speakers
  • ķ•œźµ­ ģ»¤ė®¤ė‹ˆķ‹°
    Dedicated community for Korean speakers
Exit
1

Coldfusion Schedule Run Twice (CF2016)

New Here ,
Feb 17, 2019 Feb 17, 2019

Copy link to clipboard

Copied

Hi All,

Anyone encountered this similar error? Scheduled job run twice. Although, it only shows once in the scheduler log, we can tell it run twice because we have our own logging as well, and data are being logged twice. Below are the other details:

1. This does not happen always, but happens  intermittently.

2. No other server or instance running.

3. This is a long running job (3 or 4 hours average).

Anyone who has idea and how you have resolved this problem? I can't seem to find any solutions online although there are similar cases reported.

I hope someone from Adobe Coldfusion support can see and give advice on this as well.

Thanks.

Views

767

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 Expert ,
Feb 18, 2019 Feb 18, 2019

Copy link to clipboard

Copied

My first thought is that it's related to the length of the job. The job really takes three or four hours? How does the client (CF in this case) know that the job is still in progress? I mean, HTTP doesn't really give you a way to handle that kind of messaging by itself. You're responsible for providing a pretty quick response for every HTTP request. Are you doing that in these cases?

Dave Watts, Eidolon LLC

Dave Watts, Eidolon LLC

Votes

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
New Here ,
Feb 18, 2019 Feb 18, 2019

Copy link to clipboard

Copied

Hi Dave,

Thanks for your response. Yes, usual is 3 to 4 hours. Unfortunately, this is an existing schedule already that has been used for quite a long time already. So, rewriting the whole code is not an option. I was thinking of maybe there is some updates/patches from CF, or any CF admin setting we may have missed?

As for  how we know if job is in progress or has finished, we have added additional logging mechanisms to do that. And have set also a request timeout limit.

Votes

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 Expert ,
Feb 24, 2019 Feb 24, 2019

Copy link to clipboard

Copied

I'm guessing probably not. You can open a bug report with Adobe, but having an HTTP request/response that runs that long is just asking for trouble. HTTP isn't supposed to work that way. You might be able to solve this quickly by going to each scheduled task HTTP endpoint and using CFTHREAD to do the actual work, while returning a simple response right away that basically says "work is starting ...".

Dave Watts, Eidolon LLC

Dave Watts, Eidolon LLC

Votes

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
Participant ,
Feb 25, 2019 Feb 25, 2019

Copy link to clipboard

Copied

We've had occasional issues where long running CFM's are executed twice (CF11).  We see it on a CFM we use to do batch email sends.   When the email batch is large enough, i.e. takes longer than about 5 minutes, the CFM will start executing again, and users complain of receiving duplicate emails.   I can see the duplicate CFM executing in Fusion Reactor.  I thought I had traced it down to IIS recycling the app pool while that CFM was running, but haven't been able to reproduce it.

This is not a scheduled task, BTW.

Votes

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
New Here ,
May 15, 2019 May 15, 2019

Copy link to clipboard

Copied

LATEST

Did you ever solve your duplicate email issue? We've been having the same problem for the past two months.

Votes

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
Resources
Documentation