   end
 
   def publish_status_event(state) do
-    workload = if state[:workload] == nil do
+    workload = Agent.get(HeartbeatWorkload, fn workload -> workload end)
+    workload = if workload == nil do
       []
     else
-      state[:workload]
+      workload
     end
 
     Publisher.publish_event(%StatusEvent{

  """
  @spec set_workload(List) :: :ok
  def set_workload(workload) do
    GenServer.call(__MODULE__, {:set_workload, workload})
  end

  @doc """

        if Application.get_env(:openaperture_overseer_api, :autostart, true) do
          GenServer.cast(pid, {:publish})
        end

        Agent.start_link(fn -> [] end, name: HeartbeatWorkload)
        {:ok, pid}
      {:error, reason} -> {:error, reason}
    end
