Anybody familiar with internals of 'parallel' or can point me to in source 
it is implemented?

Thanks,
Doug

On Wednesday, April 26, 2017 at 6:30:10 PM UTC-4, dpreilan wrote:
>
>
> Hey, I am building a map of nodes to run in parallel.
> This works fine:
>
> parallel unit.build_nodes
>
>
> However, I am trying to flexible for some jobs that are memory/cpu 
> intensive and NOT in parallel. I want my library/dsl code to be same and do 
> something like:
>
>
> if (do_parallel) {
>
>     parallel unit.build_nodes
>
> } else {
>
>     def keys = unit.build_nodes.keySet() as List
>
>    for (s in keys) {
>
>        def _node = unit.build_nodes.get(s)
>
>        _node(s)
>
>    }
>
> }
>
>
> This works, but I am not getting my nice 'label' that prints out when I 
> run in parallel.
>
> You can see me passing the key (label) with _node(s), but doesn't help.
>
>
> My build_nodes map is created like examples, something like:
>
> Map<String,Object> build_nodes =  [:];
>
>
> unit.build_nodes['FOO'] = ...
>
> unit.build_nodes['FOO1'] = ...
>
>
> When run in parallel I see 'FOO' and 'FOO1' and want the same when I 
> serialize.
>
> Thanks!
>
>
>

-- 
You received this message because you are subscribed to the Google Groups 
"Jenkins Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to jenkinsci-users+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/jenkinsci-users/fd444e39-b901-4584-b1c2-46fc137660fd%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to