Community forum

Please note that VisualCron support is not actively monitoring this community forum. Please use our contact page for contacting the VisualCron support directly.


barefootguru
2019-05-21T02:57:37Z
Hi, just testing VC.

In our current scheduler you assign every task to a queue. Each queue will only run 1 task at a time, so by having 3 queues (fast, medium, and slow tasks), this limits machine load.

In VC, if I create say 20 tasks which watch for incoming files, and all 20 tasks are triggered, is there a way to run them sequentially?
Sponsor
Forum information
Support
2019-05-21T09:19:06Z
By default, if you use a Trigger on a Job, it is run separately for each file that is being Triggered. This is so you can use the unique File Trigger Variables in each Execution.
Henrik
Support
http://www.visualcron.com 
Please like  VisualCron on facebook!
barefootguru
2019-05-21T10:21:47Z
Thanks for the reply, but not following…

We have a number of incoming file directories, let's say:

dir1… dir50

Each directory receives a different kind of file.

Our existing scheduler watches every directory…
if a file arrives in dir1, then task1 is triggered
if a file arrives in dir2, then task2 is triggered
if a file arrives in dir5, and another in dir10, then tasks 5 and 10 are triggered

How can I set up file triggers in VisualCron, but not have 50 tasks running at the same time?
Support
2019-05-22T09:27:57Z
In VisualCron you can either watch a single directory (with sub folders) or add many File Triggers (each watching a folder). However, also by default, subsequent calls (new files) to Triggers causes a queue which results in that it processes one Job at a time (wait for first Job/file to be finished before processing next).
Henrik
Support
http://www.visualcron.com 
Please like  VisualCron on facebook!
barefootguru
2019-05-22T23:53:30Z
Cool, I'll have a play with a single trigger for the file watch jobs. But in general there's no way to limit the number of concurrent tasks running in VisualCron?
Scroll to Top