       Logger.debug("Run action #{inspect action} #{inspect params}\n #{inspect state, pretty: true}")
     end
 
+    # Logger.debug("Do trigger wait")
     result = Serverboards.Action.trigger_wait(action, params, "rule/#{uuid}")
 
-    Logger.info("Executed action #{inspect action}", rule_uuid: uuid, params: params)
+    # Logger.info("Executed action #{inspect action}", rule_uuid: uuid, params: params)
 
     result = if Enum.count(result)==1 and Map.has_key?(result, :result) do
       result[:result] else result end

          running: false,
          state: Serverboards.RulesV2.Rules.get_state(uuid) || %{},
          last_wakeup: DateTime.utc_now(),
          signal_end_of_trigger: nil
          }}
      {:error, error} ->
        Logger.error("Error starting trigger: #{inspect error}.", rule: rule.rule)
        {:stop, :cant_start_trigger}

  end
  def handle_call({:trigger, params}, from, state) do
    if state.signal_end_of_trigger do
      # queue
      # {:reply, {:error, :already_running}, state}

      {:noreply, %{
        state |
        trigger_queue: state.trigger_queue ++ [{from, params}]
      }}
    else
      GenServer.cast(self(), {:trigger, params})
      {:noreply, %{ state | signal_end_of_trigger: from }}
