Skip to content

Commit

Permalink
fix debug
Browse files Browse the repository at this point in the history
  • Loading branch information
ravenac95 committed Dec 17, 2024
1 parent 3533739 commit 3d8a106
Showing 1 changed file with 4 additions and 11 deletions.
15 changes: 4 additions & 11 deletions warehouse/metrics_tools/compute/debug.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,24 +6,17 @@
from metrics_tools.compute.cluster import (
KubeClusterFactory,
make_new_cluster_with_defaults,
start_duckdb_cluster,
)

from . import constants
from metrics_tools.compute.types import AppConfig

logger = logging.getLogger(__name__)


def test_setup_cluster():
cluster_spec = make_new_cluster_with_defaults()
return start_duckdb_cluster(constants.cluster_namespace, cluster_spec)


def async_test_setup_cluster():
cluster_spec = make_new_cluster_with_defaults()
def async_test_setup_cluster(config: AppConfig):
cluster_spec = make_new_cluster_with_defaults(config=config)

cluster_factory = KubeClusterFactory(
constants.cluster_namespace,
config.cluster_namespace,
cluster_spec=cluster_spec,
log_override=logger,
)
Expand Down

0 comments on commit 3d8a106

Please sign in to comment.