WatchDirectory home page
WatchDirectory Startseite (Deutsche Version)
Site WatchDirectory (Français)
  Welcome, Guest. Please Login or Register
YaBB - Yet another Bulletin Board
Page Index Toggle Pages: 1
Multiple jobs vs multiple sub-tasks? (Read 611 times)
YaBB Newbies

Posts: 9
Multiple jobs vs multiple sub-tasks?
Jan 31st, 2017 at 4:43am
I have a single folder (i.e. D:\export) that another system will export multiple types of files to.  Each type of file with start with a set of characters. For example:

File type A -->  ABC123_*.txt
File type B -->  BR549_*.txt
File type c -->  CATDOG_*.txt

Each type of file needs to processed (copied and possibly sent via FTP) differently.  We expect easily over a 15 file types being exported to the one monitored folder and each type will have at least three sub-tasks.

I had assumed I would create a separate job with multiple sub-tasks for each file type.  However, that means multiple jobs will all be monitoring the same folder but each job will have different file mask.  Do you recommend this approach or a single job with many many sub-tasks? 
Back to top
IP Logged
YaBB Administrator

Posts: 2270
The Netherlands
Re: Multiple jobs vs multiple sub-tasks?
Reply #1 - Jan 31st, 2017 at 7:52am
The benefit of one task with subtasks is (mostly) using less system resources. Also, if you want to run the tasks as a Windows Service there are limitations how many services you can configure. See

If reaction-time is important, multiple tasks are better as a task can handle only 1 detected file at a time.
Back to top

Gert Rijs - gert (at) gdpsoftware (dot) com
End Alzheimer's:
WWW WWW GdPSoftware  
IP Logged
Page Index Toggle Pages: 1