wait for the continuous queries to run