Welcome Guest! Log in
×

Notice

The forum is in read only mode.
Due to some maintenance operations, stambia.org will be switched to read-only mode during the 13th November. It will be possible to read and download, but impossible to post on the forums or create new accounts. For any question please contact the support team.

Topic-icon Question How to make the number of parallel executions variable

More
10 Nov 2015 18:51 #1 by fvieillard
fvieillard created the topic: How to make the number of parallel executions variable
Hi everyone

I just learned about the Asynchronous Mode for launching delivery and the option "<nbMaxParallelSessions>" to limit the number of concurrent threads.
This is great but I would like to be able to change this setting according to environment (ie the machine capabilities).
I tried using a parameter as follows, but it doesn't seem to work:<nbMaxParallelSessions>${~/nbThreads}$</nbMaxParallelSessions>

Does anyone have an idea how I could manage this ?

My second point concerns the error management, as we don't seem to get the errors of the delivery in the parent process when running in asynchronous mode.
Have you done something similar and how do you treat errors in this case ?

Regards
François
More
16 Nov 2015 17:16 #2 by Thomas BLETON
Thomas BLETON replied the topic: How to make the number of parallel executions variable
Hi,

The Meta-inf "nbMaxParallelSessions" is a core level parameter, which cannot be altered at execution time.
You can however configure it at build time with this syntax :
<nbMaxParallelSessions>%x{md:paramValue($this, 'NbThreads')}x%</nbMaxParallelSessions>

... but not at execution time. I'll pass the idea to the R&D team.

For retrieving the errors in Asynchronous mode: as you guessed, because of the nature of the asynchronous mode, the error cannot be automatically returned to the parent process. One possibility for you is to run SQL queries against the Log database once the child sessions are over.