Found the solution. The error was in namespaces. Strangely, did not give any error at all
General developer forum
Local Plugin tasks are not showing up
This discussion has been locked so you can no longer reply to it.