Useful information found here {:ok, tas} = Task.Supervisor.start_link(restart: :transient, max_restarts: 4) Task.Supervisor.start_child(tas, fn -> IO.puts "starting child" 1 = 2 end)