Skip to content

Commit

Permalink
refactor: Move OptimizeDatabaseQueries import into function scope
Browse files Browse the repository at this point in the history
  • Loading branch information
tanmoysrt committed Dec 30, 2024
1 parent d490124 commit 48f4dd3
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion agent/site.py
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,6 @@

from agent.base import AgentException, Base
from agent.database import Database
from agent.database_optimizer import OptimizeDatabaseQueries
from agent.job import job, step
from agent.utils import b2mb, compute_file_hash, get_size

Expand Down Expand Up @@ -893,6 +892,8 @@ def analyze_slow_queries_job(self, queries: list[dict], database_root_password:

@step("Analyze Slow Queries")
def analyze_slow_queries(self, queries: list[dict], database_root_password: str) -> list[dict]:
from agent.database_optimizer import OptimizeDatabaseQueries

"""
Args:
queries (list[dict]): List of queries to analyze
Expand Down

0 comments on commit 48f4dd3

Please sign in to comment.