Add a safe redis reboot task

Will only reboot redis if there are not logs in the log queue