A task coordinator for distributed systems