     if repetition != :once do
       Process.send_after(self(), {:poll, repetition}, @poll_period)
     end
-    case poll(project_id) do
+    case poll_(project_id) do
       :stop ->
         {:stop, :normal, project_id}
       :again ->


  # Private implementation details

  defp poll(project_id) do
    project = Repo.get(Project, project_id)
    incomplete = project_id
    |> Batch.all_for_project(:incomplete)

    |> Batch.changeset(%{state: status, last_polled: now})
    |> Repo.update!()
    if status != :running do
      poll_(batch.project_id)
    end
  end

