         send(metas.socket, {build, task})
       end
 
-      # changeset = Architect.Builds.Build.changeset(b, %{status: "running"})
-      # {:ok, _b} = Architect.Repo.update(changeset)
+      changeset = Architect.Builds.Task.update_changeset(task, %{status: "building"})
+      {:ok, _t} = Architect.Repo.update(changeset)
     end)
   end
 

      Logger.debug("scheduling task: #{task.id}")

      if metas.status == :ready do
        # IO.inspect(task)
        stage =
          Ecto.assoc(task, :stage)
          |> Architect.Repo.one()

      task
      |> schedule_task()
    end)

    Process.send_after(Architect.Builders.Scheduler, :poll_builds, @poll_timeout)
    {:noreply, state}
