-
Notifications
You must be signed in to change notification settings - Fork 177
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
cache calculation log reduction #1393
Comments
Hey @RagingPuppiesX! 👋 I'm here to help you with any bugs, questions, or contributions. Let's tackle this issue together! To reduce or remove the caching logs generated by export AIRFLOW__COSMOS__ENABLE_CACHE_DBT_LS=0 Additionally, you can control the propagation of logs in the Cosmos module by setting the export AIRFLOW__COSMOS__PROPAGATE_LOGS=False These configurations should help in reducing or eliminating the associated logs [1][2]. To continue talking to Dosu, mention @dosu. Help Dosu learn! Give it feedback: Great Response | Irrelevant Answer | Incorrect Sources | Too Verbose | Hallucination | Other |
AIRFLOW__COSMOS__PROPAGATE_LOGS is not only to add the |
The The To continue talking to Dosu, mention @dosu. Help Dosu learn! Give it feedback: Great Response | Irrelevant Answer | Incorrect Sources | Too Verbose | Hallucination | Other |
so what's my alternative if AIRFLOW__COSMOS__PROPAGATE_LOGS is deprecated? |
The alternative to using the deprecated [cosmos]
rich_logging = True Alternatively, you can set the export AIRFLOW__COSMOS__ENRICH_LOGGING=True This new logging approach in Cosmos version 1.6.0 adds "(astronomer-cosmos)" to each log message and resolves the need for the deprecated To continue talking to Dosu, mention @dosu. Help Dosu learn! Give it feedback: Great Response | Irrelevant Answer | Incorrect Sources | Too Verbose | Hallucination | Other |
and how does help me with my original issue? i don't want to see the caching logs everywhere |
To address your original issue of reducing or eliminating caching logs, you can disable caching entirely by setting the following environment variable: export AIRFLOW__COSMOS__ENABLE_CACHE_DBT_LS=0 This will prevent the caching logs from being generated during DAG parsing and Dagbag refresh. The To continue talking to Dosu, mention @dosu. Help Dosu learn! Give it feedback: Great Response | Irrelevant Answer | Incorrect Sources | Too Verbose | Hallucination | Other |
hi @RagingPuppiesX , the logger is located here: astronomer-cosmos/cosmos/cache.py Line 46 in 9820935
At the moment Cosmos does not expose config to disable individual loggers, but in your DAG could try disabling or increasing the log level for this logger?
or
And let us know if this helps? |
will try, thanks a lot! |
Hi,
we are using the DBT_LS with cache and every time there's a need to parse the dags and refresh the Dagbag (and we do that a lot in our deployment to discover some dag enrichments) or by regular scheduler refresh, we are getting tons of:
i could not find a simple way to remove the caching logs, no configuration for that what so ever, and also it is a bit unclear under which logger it is located...
The text was updated successfully, but these errors were encountered: