Take the 2-minute tour ×
Server Fault is a question and answer site for professional system and network administrators. It's 100% free, no registration required.

A customer of mine is experiencing a very strange problem: a scheduled task is running twice from time to time, with only a few seconds between execution.

The task is scheduled using the windows scheduler. It's a very basic task that connects to a local service using TCP/IP, authenticate, gives it a command and disconnect. It is nearly instantaneous (the longest part actually is the SSL handshake).

It triggers an issue in the server application which I will fix but my problem is that I simply cannot find any valid reason why the task is being run twice: nobody is ever connected interactively to that machine (it's an application server) and the server log shows that all these connections come from 127.0.0.1. Sending port and thread IDs both changes indicating in a very clear way that this is no some internal "ghosting" effect in the server application.

Unfortunately, task history wasn't enabled on that server so I don't have a run trace on that front. I have enabled it and, should the problem occur again, I will check it. I've verified, however, that nobody was connected to the machine around the time to issue occurred.

Can anyone explain this ?

Thanks

share|improve this question
    
Is the task configured to not start a new instance when it's already running? –  Ansgar Wiechers Sep 10 '12 at 14:32
    
Yes it is. But the task typically runs for less than a second and the duplicate runs I see are typically 5 to 10 seconds apart. –  Stephane Sep 10 '12 at 14:39
    
Any luck getting it to repro with a log? –  Brent Pabst Sep 13 '12 at 19:49

1 Answer 1

up vote 1 down vote accepted

Well, looks like it's a bug in the OS. MS has a fix available there: http://support.microsoft.com/kb/2461249

share|improve this answer
    
If I understood correctly, that hotfix cites the cause being overlapping start/end time on an hourly boundary. Sounds like your scenario didn't quite fit that description. Did you install this hotfix? Did it solve your problem? –  lance Feb 4 at 23:02
    
As far as I know, it solved the issue: once I directed my customer to the hotfix, they never complained about it any more. –  Stephane Feb 5 at 8:03

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.