Distributed task manager