convert thread based workers to multiprocess pool
using function as factory instead hardcoded params
worker will shutdown after max_jobs or exceeded lifetime