Make api num workers configurable