WatchDirectory Forum
http://www.watchdirectory.net/cgi-bin/yabb25/YaBB.pl
watchDirectory forums >> How to... >> Concurrent Jobs
http://www.watchdirectory.net/cgi-bin/yabb25/YaBB.pl?num=1324495864

Message started by egridley on Dec 21st, 2011 at 8:31pm

Title: Concurrent Jobs
Post by egridley on Dec 21st, 2011 at 8:31pm
Is there a way to configure a task to only run a certain number of jobs simultaneously? I have a job that does some file moving/copying on the network, and I have found that it is MUCH faster to only do 4-5 at a time instead of starting all 50-60 jobs at the same time.

I have searched but have been unable to find anything that would help with this.

Hopefully this makes sense.

Thanks!

Title: Re: Concurrent Jobs
Post by Gert on Dec 22nd, 2011 at 6:06am
Hello Eric,

I have just answered your email about this.

Title: Re: Concurrent Jobs
Post by shancock on Mar 28th, 2013 at 1:35am
Hi Gert,

I have the same question as Eric. WD sets off a program when every file appears. I might have 100 files appear in a few seconds, and so 100 instances of the program are started, and might take 60 seconds to process the file. The program posts data from the files to a web service. My concern is that either the web service will get flooded with too many messages, or the PC running WD will not handle all the instances of the program. So might thought is to look at ways to control the number of concurrent instances through WD. But I cannot see anywhere to do this. I have WD Pro, and in the Scheduler Pro tab it has a number of options on when to start, but not to limit instances.

Your help would be appreciated please.

Regards, Scott.
;D

Title: Re: Concurrent Jobs
Post by Gert on Mar 28th, 2013 at 8:14am
Hello Scott,

If you use the "Run any program" task ( http://www.watchdirectory.net/wdhelp/plugins/wdopAutoLaunch.html ), there is an option to wait for the started program to complete.

If you start your program through a .bat file, you can set an option how many .bat files are concurrently allowed to run.

Gert

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