   """
   @spec set_workload(List) :: :ok
   def set_workload(workload) do
-    GenServer.call(__MODULE__, {:set_workload, workload})
+    Agent.update(HeartbeatWorkload, fn _ -> workload end)
   end
 
   @doc """

  end

  def publish_status_event(state) do
    workload = if state[:workload] == nil do
      []
    else
      state[:workload]
    end

    Publisher.publish_event(%StatusEvent{

      workload: workload
    })    
  end
end