Skip to content

fix(logs): stop spamming logs with the name of all selected models #35

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Apr 14, 2025
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions dagster_sqlmesh/resource.py
Original file line number Diff line number Diff line change
Expand Up @@ -296,8 +296,6 @@ def run(
sqlmesh_model_name_to_key(model.name)
in context.selected_output_names
):
logger.info(f"selected model: {model.name}")

models_map[key] = model
select_models.append(model.name)
selected_models_set = set(models_map.keys())
Expand All @@ -308,6 +306,8 @@ def run(
# Setting this to none to allow sqlmesh to select all models and
# also remove any models
select_models = None
else:
logger.info(f"selected models: {select_models}")

event_handler = DagsterSQLMeshEventHandler(
context, models_map, dag, "sqlmesh: "
Expand Down
2 changes: 1 addition & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[project]
name = "dagster-sqlmesh"
version = "0.11.1"
version = "0.11.2"
description = ""
authors = [
{name = "Reuven Gonzales", email = "reuven@karibalabs.co"}
Expand Down
2 changes: 1 addition & 1 deletion uv.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.