Skip to content

Commit

Permalink
Improve logs further for 1.5.1a2 release
Browse files Browse the repository at this point in the history
  • Loading branch information
tatiana committed Jul 16, 2024
1 parent cc7c716 commit ad9024e
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion CHANGELOG.rst
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
Changelog
=========

1.5.0a1 (2024-07-16)
1.5.1a2 (2024-07-17)
--------------------

Bug fixes
Expand Down
3 changes: 1 addition & 2 deletions cosmos/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,7 @@
Contains dags, task groups, and operators.
"""
__version__ = "1.5.1a1"

__version__ = "1.5.1a2"

from cosmos.airflow.dag import DbtDag
from cosmos.airflow.task_group import DbtTaskGroup
Expand Down
2 changes: 1 addition & 1 deletion cosmos/cache.py
Original file line number Diff line number Diff line change
Expand Up @@ -247,7 +247,7 @@ def _calculate_dbt_ls_cache_current_version(cache_identifier: str, project_dir:
:param cmd_args: List containing the arguments passed to the dbt ls command that would affect its output
"""
logger.info(
f"_calculate_dbt_ls_cache_current_version for {cache_identifier} received the project_dir: {project_dir}"
f"_calculate_dbt_ls_cache_current_version for {cache_identifier} received the project_dir: {project_dir} and cmd_args: {cmd_args}"
)
start_time = time.perf_counter()

Expand Down
3 changes: 2 additions & 1 deletion cosmos/dbt/graph.py
Original file line number Diff line number Diff line change
Expand Up @@ -187,7 +187,7 @@ def env_vars(self) -> dict[str, str]:
"""
return self.render_config.env_vars or self.project.env_vars or {}

@cached_property
@property
def project_path(self) -> Path:
"""
Return the user-defined path to their dbt project. Tries to retrieve the configuration from render_config and
Expand Down Expand Up @@ -262,6 +262,7 @@ def save_dbt_ls_cache(self, dbt_ls_output: str) -> None:
compressed_data = zlib.compress(dbt_ls_output.encode("utf-8"))
encoded_data = base64.b64encode(compressed_data)
dbt_ls_compressed = encoded_data.decode("utf-8")
logger.info(f"save_dbt_ls_cache for {self.dbt_ls_cache_key}: self.project_path: {self.project_path}")
cache_dict = {
"version": cache._calculate_dbt_ls_cache_current_version(
cache_identifier=self.dbt_ls_cache_key,
Expand Down

0 comments on commit ad9024e

Please sign in to comment.