WatchDirectory Forum | |
https://www.watchdirectory.net/cgi-bin/yabb25/YaBB.pl
watchDirectory forums >> Bug Reports >> Not kicking off Jobs. https://www.watchdirectory.net/cgi-bin/yabb25/YaBB.pl?num=1391714982 Message started by digdave7 on Feb 6th, 2014 at 8:29pm |
Title: Not kicking off Jobs. Post by digdave7 on Feb 6th, 2014 at 8:29pm
I'm noticing the process has progressively started hanging and NOT running my vbs tasks it ran just great for a while. I'm going to test a batch file, and changed from fast to poll, but got stuck again just today. It ran solid for weeks then around 2 - 3 weeks ago seems to hang every other day sometimes twice a day. I also added a scheduled task to restart the tasks each night in case they were getting hung.
I recently upgraded to the newest version which didnt help. Is there somethhing I can provide that can help?? |
Title: Re: Not kicking off Jobs. Post by digdave7 on Feb 6th, 2014 at 11:04pm
Ok. I did a bit more testing with verbose mode, it is kicking off the batch file but for some reason my process can't lock the file so my vbscript can't open, process then remove it. Is there something in WD that locks the file for a certain amount of time..?
|
Title: Re: Not kicking off Jobs. Post by Gert on Feb 7th, 2014 at 7:48am
Hi,
When WatchDirectory starts your script, WatchDirectory doesn't hold any locks on the file. Before WatchDirectory starts your script, WatchDirectory may have shared locks on the file (depends on "wait for files....", the first setting on http://www.watchdirectory.net/wdhelp/help/wdnewconfigpage6.html ). If you have multiple WatchDirectory tasks monitoring the same directory, it could be that task-1 starts your script while task-2 is still waiting (and maybe locking) the detected file. Or maybe a virus scanner is checking the file? Perhaps you can add some delay before you start processing? For example by issuing some kind of "sleep" command or have a higher value on the above mentioned settings page for "delay starting task"... |
Title: Re: Not kicking off Jobs. Post by digdave7 on Feb 7th, 2014 at 9:06pm
Ok I digress and found the problem. The client can send us two files only difference is the extension so I have a dual filter (same task) on the filename separated by ";", like "file1; File2" File 1 was fine, however two didnt because of the space between the semi-colon and the filename. I dont know if people would know that, so maybe trim the names that are separated..??
|
Title: Re: Not kicking off Jobs. Post by Gert on Feb 7th, 2014 at 9:12pm
wow, thanks for noticing (and reporting) that.
We probably release WD 4.8 somewhere next week. I will make sure this will be fixed as it is an easy thing to enter a few spaces by accident. |
Title: Re: Not kicking off Jobs. Post by Gert on Feb 8th, 2014 at 7:01am |
WatchDirectory Forum » Powered by YaBB 2.5.2! YaBB Forum Software © 2000-2025. All Rights Reserved. |