Adaptive task manager