Rule status on startup


i need help with keeping the Rule i configured enabled

on deployment i run a job that configures a new Rule , this is done once on deployment
but once the pods restarts for any reason the Rule is always disabled

how can i fix this make the default status of my Rule as enabled

Hi, rules are disabled after emqx is rebooted if the resources cannot get connected. This is because without resource connected, we cannot initialized the actions so the rules will not work.

After reboot, emqx starts a timer (at interval of 60s) keep checking the status of the disconnected resources and re-enable the rules if they got connected.