scheduler task now refers to run_queries