 
   def handle_info({Registry, :update, FarmEvent, data}, state) do
     maybe_farm_event_log "Reindexing monitor on FarmEvent: #{data.id}."
+    if String.contains?(data.executable_type, "Regimen") do
+      reg = Farmbot.Asset.get_regimen_by_id(data.executable_id, data.id)
+      if reg do
+        Farmbot.Regimen.Supervisor.reindex_all_managers(reg)
+      end
+    end
     Map.put(state.events, data.id, data)
     |> reindex(state)
   end

  end

  defp maybe_schedule_regimen(true = _scheduled?, _schedule_time, last_time, event, _now) do
    maybe_farm_event_log "regimen #{event.name} (#{event.id}) should already be scheduled."
    {nil, last_time}
  end


  alias Farmbot.Asset.{FarmEvent, Sequence, Regimen}
  alias Farmbot.Repo.Registry

  # @checkup_time 100
  @checkup_time 15_000

  ## GenServer

