WatchDirectory Forum
watchDirectory forums >> How to... >> Checking if tasks are actually running

Message started by TonyF on Jun 2nd, 2017 at 10:16am

Title: Checking if tasks are actually running
Post by TonyF on Jun 2nd, 2017 at 10:16am
I have a Windows 2012 server that is running ~ 13 WatchDirectory tasks as a service. On occasion, I have noticed that a task is reported as running by both the local Control Center and the WxRemote Control Center but is not actually detecting files on the monitored datashare. If I stop and restart the affected task, it starts to detect files again. I need to have a mechanism that detects if a task is not actually detecting files. One approach I thought of was to have an administration type task that would monitor the history.db files for the tasks and if they have not changed in (say) 24 hours then to send me an email. Obviously this would give me false alerts for tasks that monitor datashares that do not have frequent events occurring on them. Another approach I though of was to routinely stop and restart the tasks (via a script) but this is obviously a crude approach that I would use as a last resort.

Have you any thoughts on how I could address this issue?

Many thanks,


Title: Re: Checking if tasks are actually running
Post by Gert on Jun 3rd, 2017 at 8:32am
Hello Tony,

Those tasks, are they using the "Default" or "Fast" monitoring method? Those 2 methods need a very reliable network and "both sides" (the local Windows computer and the computer "hosting" the share) need to cooperate very closely for those methods to work reliably.

Try changing them to either "Polling" or "File Age" monitoring.

WatchDirectory Forum » Powered by YaBB 2.5.2!
YaBB Forum Software © 2000-2017. All Rights Reserved.