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
Scheduler not working (Read 5439 times)
wesman
Junior Member
**
Offline



Posts: 75
Australia
Scheduler not working
Jul 30th, 2009 at 12:08am
 
Hi Gert

I have set a task that has the Scheduler active on it - I have set the Scheduler so that it should run on all days except Thursdays, and that it should only run between the hours of 9:13 and 23:54 on these days.

However, the task has been sending me emails today, which is Thursday, so the Scheduler doesn't seem to be working correctly.

I have also ticked the Events outside these periods should be ignored box, and the Force Schedule and Merge Tasks boxes are also ticked.

Please advise if this is a bug or whether I am doing something wrong.


Thanks


Wes
Back to top
« Last Edit: Jul 30th, 2009 at 1:21am by wesman »  
 
IP Logged
 
Gert
YaBB Administrator
*****
Offline



Posts: 2225
The Netherlands
Re: Scheduler not working
Reply #1 - Jul 30th, 2009 at 7:18am
 
Hello Wes,

The scheduler is not exact science Wink there may be one or 2 twilight zone minutes where files are still processed. Are you seeing much more than a few minutes?
Can you send me a backup of your task to look at:
* stop the task
* right-click it
* select "Backup selected task" from the popup menu
Please email me the ZIP, do not post it here on the forum.

Gert
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
 
wesman
Junior Member
**
Offline



Posts: 75
Australia
Re: Scheduler not working
Reply #2 - Jul 30th, 2009 at 7:31am
 
Hi Gert - it's been sending the emails each hour and every hour today, even though it is Thursday and Thursday is the only day we have set to be excluded from the schedule. I will send you the file separately.

Thanks

Wes
Back to top
 
 
IP Logged
 
Gert
YaBB Administrator
*****
Offline



Posts: 2225
The Netherlands
Re: Scheduler not working
Reply #3 - Jul 30th, 2009 at 7:35am
 
Are you using the "Folder Size" task? http://www.watchdirectory.net/wdhelp/plugins/wdopFolderSize.html

That plugin is a strange beast as it is the only one that doesn't work on individual files. I think it also ignores the scheduler.
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
 
wesman
Junior Member
**
Offline



Posts: 75
Australia
Re: Scheduler not working
Reply #4 - Jul 30th, 2009 at 7:39am
 
Hi Gert - yes, it's the Folder Size task - I'm monitoring the number of files in a particular folder and if it gets to less than 2 files then it needs to email me.


Thanks


Wes
Back to top
 
 
IP Logged
 
wesman
Junior Member
**
Offline



Posts: 75
Australia
Re: Scheduler not working
Reply #5 - Jul 30th, 2009 at 7:54am
 
Hi Gert - if you could let me know when you've fixed the Scheduler for the Folder Size task and have uploaded a Beta with this fix in it, that would be great.


Thanks again for a superb product!


Wes
Back to top
 
 
IP Logged
 
Gert
YaBB Administrator
*****
Offline



Posts: 2225
The Netherlands
Re: Scheduler not working
Reply #6 - Jul 30th, 2009 at 7:58am
 
Let me give you some background how things work...

WD has 2 main components:
1. The part that detects filesystem changes (new files, deleted files)
2. The part that runs tasks (email, ftp, copy etc)
Component 1 feeds events to component 2. These 2 components are largely unaware of each other. This allows us to create new tasks/plugins without worry (changes to component 1).

The scheduler is part of component 1 (file detection).

Now lets see how "Folder Size" works. Like I mentioned before, this is the only plugin that does not work on individual files. It "monitors" changes in available space or changes to the number of files present on disk.
"Folder Size" will check available space/number of files at startup and after that every hour. When an event (from component-1) is fed to it, something on the disk has changed so "Folder Size" will check diskspace/nr of files as well.

As you can see, if the scheduler disables component-1 (event monitoring), the "Folder Size" task still checks the disk at 1 hour intervals.

It is very hard to change/fix this as I then need to make component-2 (the task runner) interact with component-1 (event detection) to see if the scheduler is active. This breaks up the complete design of WD.

Obviously, those are our problems, you are looking for a solution. Why don't you just stop the task Wednesday night and start it again Thursday morning?
Please see this blogpost for a technique to do that automatically:
http://watchdirftp.blogspot.com/2008/09/automatically-start-watchdirectory.html

Gert
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
 
wesman
Junior Member
**
Offline



Posts: 75
Australia
Re: Scheduler not working
Reply #7 - Jul 30th, 2009 at 8:15am
 
Great thanks Gert - with this workaround we'll set up a task in the Windows Task Scheduler a) to stop our Folder Size monitor task on Wednesday night and then we'll start it again on Friday morning. This will be suitable as a solution for now, so thank you for this, and thanks also for the more detailed explanation as to how WD works.


Keep up the good work!

Thanks

Wes
Back to top
 
 
IP Logged
 
Gert
YaBB Administrator
*****
Offline



Posts: 2225
The Netherlands
Re: Scheduler not working
Reply #8 - Jul 30th, 2009 at 8:37am
 
If you like technical details, see this bits&bytes page:
http://www.watchdirectory.net/tour/tech_info.html
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