I have the following function:
def create_job(target, args):
p = multiprocessing.Process(target=target, args=args)
p.start()
return p
The above function gets called by:
ps = create_job(mc.collect_categories, (cat_ids),)
Being cat_ids a list of 'ids': ['ML68', 'MA453','MA33']
When I run the code I get the following error(with a list of 10 cat_ids):
TypeError: collect_categories() takes exactly 2 arguments (11 given)
I tried to pass the values with the '*' to unpack it but that wasn't the problem.