 
   defp poll_attempt(attempt, project) do
     patch = Repo.get!(Patch, attempt.patch_id)
-    now = DateTime.to_unix(DateTime.utc_now(), :seconds)
+    now = DateTime.to_unix(DateTime.utc_now(), :second)
     if attempt.timeout_at < now do
       timeout_attempt(attempt, project, patch)
     else

    statuses = Repo.all(AttemptStatus.all_for_attempt(attempt.id))
    state = Batcher.State.summary_database_statuses(statuses)
    maybe_complete_attempt(state, project, patch, statuses)
    now = DateTime.to_unix(DateTime.utc_now(), :seconds)
    attempt
    |> Attempt.changeset(%{state: state, last_polled: now})
    |> Repo.update!()

                committer: toml.committer
                })
            state = setup_statuses(attempt, toml)
            now = DateTime.to_unix(DateTime.utc_now(), :second)
            attempt
            |> Attempt.changeset(%{
              state: state, commit: commit, last_polled: now})
