Workflow and ServiceDesk Community

 View Only
  • 1.  Monitoring Project executes twice?

    Posted Oct 14, 2013 02:19 PM

    I built a monitoring project (WF 7.1)  that reads from a database, does some processing, and then sends an email.

    It is scheduled to run daily at 4am.

    I created a publishing installer and ran the installer exe.

    So far so good.  My job runs every day at 4am.

     

    Weeks later, I update the monitoring project, and then I create a new publishing installer for it.

    I uninstall the previous one using Control Panel / Add Remove programs.  I verify that the service is no longer listed under services.msc

    Then I run my new installer.

    From this point on, when my job runs at 4am, I get two email reports instead of one.

    The job is actually running twice.

    So far, I have not been able to figure this one out.  Any ideas on what is going on?



  • 2.  RE: Monitoring Project executes twice?

    Posted Oct 14, 2013 03:34 PM

    Typically I run "sc delete <service name>" at the command line to uninstall a service. I would try doing that... uninstaling using the command line, then reinstalling.



  • 3.  RE: Monitoring Project executes twice?
    Best Answer

    Posted Oct 15, 2013 08:54 AM

    Thank you reecardo.  I finally discovered that the problem was due to my error.

    The service had been installed on our dev box during testing, then when we installed on the prod server, we stopped the service on the test server.  

    I should have disabled it instead of just stopping it, because several weeks later whent the test server was rebooted b/c of maintenance, the service started back up again and we were getting two reports every day.

    By coincidence, I had just published an update to the service on the production server around the same time.  So initially, it looked like something funny happened with the update.  It turns out that I didn't clean up the service on the test box properly.

     

     



  • 4.  RE: Monitoring Project executes twice?

    Posted Oct 15, 2013 09:56 AM

    That's bit me a few times. What I did to resolve was right before the email is sent, I get the Enviroment Variable COMPUTERNAME and add that to the email. This shows me the physical servername where the process is running. Quick and easy way to identify where the email came from.

     

    Rob