Refactoring in one function the waiting in max_parallel resource handling
Refactoring in one function the waiting in max_parallel resource handling

bigmlcom/bigmler,jaor/bigmler,bigmlcom/bigmler,bigmlcom/bigmler,jaor/bigmler,jaor/bigmler,jaor/bigmler,brokendata/bigmler,bigmlcom/bigmler,brokendata/bigmler