Convert Mix.TasksServer from a GenServer to an Agent