fix worker instance misconfiguration

Hi

I've added passing config into the worker. Could you please review.

Thanks
Please use a space before and after the `=` to keep the code styles consistent.