     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)
+    now = DateTime.to_unix(DateTime.utc_now(), :second)
     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(), :seconds)
            attempt
            |> Attempt.changeset(%{
              state: state, commit: commit, last_polled: now})

        url: nil,
        state: :running})
    |> Enum.each(&Repo.insert!/1)
    now = DateTime.to_unix(DateTime.utc_now(), :second)
    attempt
    |> Attempt.changeset(%{timeout_at: now + toml.timeout_sec})
    |> Repo.update!()
