Disable query log for long-running tasks to keep memory usage flat