Add max number of threads to task runner