Your worker method needs ‘self’ as a parameter, since it is a class method and not a function. Adding that should make it work fine.
Your worker method needs ‘self’ as a parameter, since it is a class method and not a function. Adding that should make it work fine.