Fixing R17 deprecations in worker_pool