[Answered ]-Error: object.__new__() takes no parameters

2👍

It looks like you’re trying to instantiate the ProcessRequests class with parameters, but that class doesn’t have a constructor which takes parameters, hence the error.

I think you just need to change…

ProcessRequests(batch)

…to…

ProcessRequests().run(batch)

…but whether it will do what you want depends on the definition of the Task class.

👤Aya

Leave a comment