WatchDirectory home page
WatchDirectory Startseite (Deutsche Version)
Site WatchDirectory (Français)
  Welcome, Guest. Please Login or Register
YaBB - Yet another Bulletin Board
   
  HomeHelpSearchLoginRegister  
 
Page Index Toggle Pages: 1
Not kicking off Jobs. (Read 2821 times)
digdave7
YaBB Newbies
*
Offline



Posts: 16
Not kicking off Jobs.
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??
Back to top
 
 
IP Logged
 
digdave7
YaBB Newbies
*
Offline



Posts: 16
Re: Not kicking off Jobs.
Reply #1 - 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..?
Back to top
 
 
IP Logged
 
Gert
YaBB Administrator
*****
Offline



Posts: 2233
The Netherlands
Re: Not kicking off Jobs.
Reply #2 - 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"...
Back to top
 

Gert Rijs - gert (at) gdpsoftware (dot) com
Blog: http://blog-en.gdpsoftware.com/
End Alzheimer's: http://www.alz.org&&...
WWW WWW GdPSoftware  
IP Logged
 
digdave7
YaBB Newbies
*
Offline



Posts: 16
Re: Not kicking off Jobs.
Reply #3 - 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..??
Back to top
 
 
IP Logged
 
Gert
YaBB Administrator
*****
Offline



Posts: 2233
The Netherlands
Re: Not kicking off Jobs.
Reply #4 - 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.
Back to top
 

Gert Rijs - gert (at) gdpsoftware (dot) com
Blog: http://blog-en.gdpsoftware.com/
End Alzheimer's: http://www.alz.org&&...
WWW WWW GdPSoftware  
IP Logged
 
Gert
YaBB Administrator
*****
Offline



Posts: 2233
The Netherlands
Re: Not kicking off Jobs.
Reply #5 - Feb 8th, 2014 at 7:01am
 
Back to top
 

Gert Rijs - gert (at) gdpsoftware (dot) com
Blog: http://blog-en.gdpsoftware.com/
End Alzheimer's: http://www.alz.org&&...
WWW WWW GdPSoftware  
IP Logged
 
Page Index Toggle Pages: 1