Add attribute for api_workers and rpc_workers

Change-Id: I758a4ca1c5551a2bb13cdf6e7da9ab62e23a5663
Closes-Bug: #1365005